]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
temp debug logging hack for subscriber list early cutoff bug - we can see a cut off...
authorBrion Vibber <brion@pobox.com>
Wed, 30 Dec 2009 23:09:24 +0000 (15:09 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 30 Dec 2009 23:09:24 +0000 (15:09 -0800)
lib/profilelist.php

index 3412d41d1c94b794b1a9251c2fd9e75d5eb326cc..ae875ac011a9d6843720a0a76bb6438aa668a5de 100644 (file)
@@ -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;
     }