summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2019-08-12 15:27:41 +0200
committerUrban Müller2019-08-12 15:27:41 +0200
commit98333fca43bef66883b1a55a63e1e9a5723b3d0c (patch)
tree43e82546d8e9d2a5ff9d46294213df5ae34bf6dd
parentd42ccc282042c9040d4402d8009e5f5208c3124a (diff)
downloaditools-98333fca43bef66883b1a55a63e1e9a5723b3d0c.tar.gz
itools-98333fca43bef66883b1a55a63e1e9a5723b3d0c.tar.bz2
itools-98333fca43bef66883b1a55a63e1e9a5723b3d0c.zip
no alerts if different machines fail in sequence
-rw-r--r--it_cache.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class
index bed0cd9..da5114f 100644
--- a/it_cache.class
+++ b/it_cache.class
@@ -89,7 +89,8 @@ static function put($key, $value, $p = array())
it::error(array_filter([
'title' => ($p['distributed'] ? "memcache (" . ($memcache ? ($memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host']) : "n/a") . ")" : self::$_store_func) . " in it_cache::put failed",
'body' => "key='$key'",
- 'timewindow' => "1200-1220",
+ 'id' => $p['distributed'] ? "it_cache_fail_" . $memcache->getServerByKey($key)['host'] : "it_cache_fail",
+ 'timewindow' => "1200-1300",
'blockmailid' => $memcache ? "memcache_on_" . $memcache->getServerByKey($key)['host'] : null,
'blockmail' => $memcache? 12*3600 : null,
]));