From d57c26e98e10fa1a7376f35bccb6351900519a46 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 24 Feb 2012 16:15:49 -0800 Subject: [PATCH] Adding debug message about counting errors. --- apps/rss_feeds/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/rss_feeds/models.py b/apps/rss_feeds/models.py index 07f585207..013b9ebef 100644 --- a/apps/rss_feeds/models.py +++ b/apps/rss_feeds/models.py @@ -331,6 +331,7 @@ class Feed(models.Model): self.save() def count_errors_in_history(self, exception_type='feed', status_code=None): + logging.debug(' ---> [%-30s] Counting errors in history...' % (unicode(self)[:30])) history_class = MFeedFetchHistory if exception_type == 'feed' else MPageFetchHistory fetch_history = map(lambda h: h.status_code, history_class.objects(feed_id=self.pk)[:50])