diff options
author | Urban Müller | 2017-08-09 14:22:39 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-09 14:22:39 +0200 |
commit | e8df3584d84f18ac2a385108e2d39980b28ea0ac (patch) | |
tree | 9fcecc9e0f11a7e5a12172fce3fcc282657ba6cd | |
parent | 829e7cafd19646b15e99f964756e6d78015f714b (diff) | |
download | itools-e8df3584d84f18ac2a385108e2d39980b28ea0ac.tar.gz itools-e8df3584d84f18ac2a385108e2d39980b28ea0ac.tar.bz2 itools-e8df3584d84f18ac2a385108e2d39980b28ea0ac.zip |
better err msg
-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 d2f5fe0..19bd9a4 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 (ResultCode " . $memcache->getResultCode() . ")" : 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() . ")" : 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 |