Adding debug message about counting errors.

This commit is contained in:
Samuel Clay 2012-02-24 16:15:49 -08:00
parent 80a666ff53
commit d57c26e98e

View file

@ -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])