forked from GNUsocial/gnu-social
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
This commit is contained in:
parent
45c9d3d729
commit
45dc24689d
@ -86,16 +86,21 @@ class ProfileList extends Widget
|
|||||||
|
|
||||||
function showProfiles()
|
function showProfiles()
|
||||||
{
|
{
|
||||||
|
$log = strtolower(get_class($this)) == 'subscriberslist' && $this->owner->nickname == 'petercook';
|
||||||
$cnt = 0;
|
$cnt = 0;
|
||||||
|
|
||||||
|
if ($log) common_log(LOG_INFO, "subbug: starting with {$this->profile->N}");
|
||||||
while ($this->profile->fetch()) {
|
while ($this->profile->fetch()) {
|
||||||
$cnt++;
|
$cnt++;
|
||||||
if($cnt > PROFILES_PER_PAGE) {
|
if($cnt > PROFILES_PER_PAGE) {
|
||||||
|
if ($log) common_log(LOG_INFO, "subbug: breaking at $cnt");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if ($log) common_log(LOG_INFO, "subbug: showing at $cnt");
|
||||||
$pli = $this->newListItem($this->profile);
|
$pli = $this->newListItem($this->profile);
|
||||||
$pli->show();
|
$pli->show();
|
||||||
}
|
}
|
||||||
|
if ($log) common_log(LOG_INFO, "subbug: ended at $cnt");
|
||||||
|
|
||||||
return $cnt;
|
return $cnt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user