From: Brion Vibber <brion@pobox.com>
Date: Wed, 30 Dec 2009 23:09:24 +0000 (-0800)
Subject: temp debug logging hack for subscriber list early cutoff bug - we can see a cut off... 
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45dc24689df85b63eaa13173cd9a111b4a5cf237;p=quix0rs-gnu-social.git

temp debug logging hack for subscriber list early cutoff bug - we can see a cut off list at http://identi.ca/petercook/subscribers but haven't been able to explain it. will log a little data on the execution through the list
---

diff --git a/lib/profilelist.php b/lib/profilelist.php
index 3412d41d1c..ae875ac011 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -86,16 +86,21 @@ 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;
     }