diff options
author | Urban Müller | 2017-08-09 14:52:30 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-09 14:52:30 +0200 |
commit | eb9af9b083278d869514c3437e4c4ef8e1e3f087 (patch) | |
tree | 77fd1cba081ebf8c0e9d7c402eda595b75900962 /it_cache.class | |
parent | e8df3584d84f18ac2a385108e2d39980b28ea0ac (diff) | |
download | itools-eb9af9b083278d869514c3437e4c4ef8e1e3f087.tar.gz itools-eb9af9b083278d869514c3437e4c4ef8e1e3f087.tar.bz2 itools-eb9af9b083278d869514c3437e4c4ef8e1e3f087.zip |
display affected server
Diffstat (limited to 'it_cache.class')
-rw-r--r-- | it_cache.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_cache.class b/it_cache.class index 19bd9a4..da5918e 100644 --- a/it_cache.class +++ b/it_cache.class @@ -86,7 +86,7 @@ static function put($key, $value, $p = array()) $success = ($func = self::$_store_func) ? $func($key, $value, $p['ttl']) : null; if (!$success && $p['safety'] == 1) - it::error(array('title' => ($p['distributed'] ? "memcache (" . $memcache->getResultMessage() . ")" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 300, 'timewindow' => 10)); + it::error(array('title' => ($p['distributed'] ? "memcache (" . $memcache->getResultMessage() . " on " . $memcache->getServerByKey($key)['host'] . ")" : self::$_store_func) . " in it_cache::put failed for key '$key'", 'id' => "it_cache_put", 'graceperiod' => 300, 'timewindow' => 10)); $GLOBALS['it_cache_local'][$key] = $value; # Also store local copy |