Debug check to track down live error -- wrong data type sometimes being sent down to Memcached_DataObject::cacheKey() via various fetch functions, need a backtrace to track it down.

This commit is contained in:
Brion Vibber 2009-12-11 14:19:18 -08:00
parent 75b11527c7
commit 727357695e

View File

@ -93,6 +93,11 @@ class Memcached_DataObject extends DB_DataObject
} }
static function cacheKey($cls, $k, $v) { static function cacheKey($cls, $k, $v) {
if (is_object($cls) || is_object($j) || is_object($v)) {
$e = new Exception();
common_log(LOG_ERR, __METHOD__ . ' object in param: ' .
str_replace("\n", " ", $e->getTraceAsString()));
}
return common_cache_key(strtolower($cls).':'.$k.':'.$v); return common_cache_key(strtolower($cls).':'.$k.':'.$v);
} }