From aa7b6447a1172693e7e7affe0bde37cf098e81d1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 18 Apr 2011 16:20:51 -0400 Subject: [PATCH] put some debugging code into the home and public timelines --- lib/inboxnoticestream.php | 4 ++++ lib/publicnoticestream.php | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index 5517cef113..445828a551 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -133,6 +133,10 @@ class RawInboxNoticeStream extends NoticeStream $ids = array_slice($ids, $offset, $limit); + if (common_config('debug', 'homevspublic')) { + common_debug('Home raw: ' . implode(',', $ids)); + } + return $ids; } } diff --git a/lib/publicnoticestream.php b/lib/publicnoticestream.php index 044701aaf6..51af54f48f 100644 --- a/lib/publicnoticestream.php +++ b/lib/publicnoticestream.php @@ -103,6 +103,10 @@ class RawPublicNoticeStream extends NoticeStream $notice->free(); $notice = NULL; - return $ids; + if (common_config('debug', 'homevspublic')) { + common_debug('Public raw: ' . implode(',', $ids)); + } + + return $ids; } } \ No newline at end of file