mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Adding debug message about counting errors.
This commit is contained in:
parent
80a666ff53
commit
d57c26e98e
1 changed files with 1 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue