Skip to content

Commit

Permalink
error occuring while fetching feed are no error in JARR => warn level
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Apr 22, 2016
1 parent 3a07ad8 commit 3e1bb3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/crawler/http_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def callback(self, response):
response.raise_for_status()
except Exception as error:
error_count = self.feed['error_count'] + 1
logger.exception('%r %r - an error occured while fetching '
'feed; bumping error count to %r',
self.feed['id'], self.feed['title'], error_count)
logger.warn('%r %r - an error occured while fetching '
'feed; bumping error count to %r',
self.feed['id'], self.feed['title'], error_count)
future = self.query_jarr('put', 'feed/%d' % self.feed['id'],
{'error_count': error_count,
'last_error': str(error),
Expand Down

0 comments on commit 3e1bb3e

Please sign in to comment.