diff options
author | Brion Vibber <brion@pobox.com> | 2009-12-30 16:40:59 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-12-30 16:40:59 -0800 |
commit | ff50c2b91d9fadaa9a4ede11785408408fc2d3c5 (patch) | |
tree | cbf7cbd3e0e8b95df45e3e17e26c3a89f18e0ee8 | |
parent | 9218cce3cdc824e2011bcdf250a08ca1698f5ea1 (diff) |
Revert debugging code
-rw-r--r-- | classes/Memcached_DataObject.php | 9 | ||||
-rw-r--r-- | lib/profilelist.php | 5 |
2 files changed, 0 insertions, 14 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 4efec06ab..d8b0db5a6 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -31,20 +31,11 @@ class Memcached_DataObject extends DB_DataObject function __destruct() { - if (get_class($this) == 'Profile') - common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid); $this->free(); if (method_exists('DB_DataObject', '__destruct')) { parent::__destruct(); } } - - function free() - { - if (get_class($this) == 'Profile') - common_log(LOG_INFO, 'subbug: freeing result id ' . $this->_DB_resultid); - parent::free(); - } function &staticGet($cls, $k, $v=null) { diff --git a/lib/profilelist.php b/lib/profilelist.php index ae875ac01..3412d41d1 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -86,21 +86,16 @@ class ProfileList extends Widget function showProfiles() { - $log = strtolower(get_class($this)) == 'subscriberslist' && $this->owner->nickname == 'petercook'; $cnt = 0; - if ($log) common_log(LOG_INFO, "subbug: starting with {$this->profile->N}"); while ($this->profile->fetch()) { $cnt++; if($cnt > PROFILES_PER_PAGE) { - if ($log) common_log(LOG_INFO, "subbug: breaking at $cnt"); break; } - if ($log) common_log(LOG_INFO, "subbug: showing at $cnt"); $pli = $this->newListItem($this->profile); $pli->show(); } - if ($log) common_log(LOG_INFO, "subbug: ended at $cnt"); return $cnt; } |