]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Debug check to track down live error -- wrong data type sometimes being sent down...
authorBrion Vibber <brion@pobox.com>
Fri, 11 Dec 2009 22:19:18 +0000 (14:19 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 11 Dec 2009 22:19:18 +0000 (14:19 -0800)
classes/Memcached_DataObject.php

index 753fe954e06495a231776d3f50fce09b7930ba95..644b84d5cf64317dfea648edfa09d4dd6dd86578 100644 (file)
@@ -93,6 +93,11 @@ class Memcached_DataObject extends DB_DataObject
     }
 
     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);
     }