diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-04-24 15:01:34 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-05-13 15:46:41 +0200 |
commit | d9b19cecd8dc5b4fda67ed6b0521ac0c3dc37f4c (patch) | |
tree | 7f1aff7e7b06479b7dbf80f0ad26e7c393812675 /pyaggr3g470r/lib/crawler.py | |
parent | pep8 (diff) | |
download | newspipe-d9b19cecd8dc5b4fda67ed6b0521ac0c3dc37f4c.tar.gz newspipe-d9b19cecd8dc5b4fda67ed6b0521ac0c3dc37f4c.tar.bz2 newspipe-d9b19cecd8dc5b4fda67ed6b0521ac0c3dc37f4c.zip |
correcting log level for error in feed retrieving
Diffstat (limited to 'pyaggr3g470r/lib/crawler.py')
-rw-r--r-- | pyaggr3g470r/lib/crawler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/lib/crawler.py b/pyaggr3g470r/lib/crawler.py index cae3bd8f..c4c80ad4 100644 --- a/pyaggr3g470r/lib/crawler.py +++ b/pyaggr3g470r/lib/crawler.py @@ -225,9 +225,9 @@ class FeedCrawler(AbstractCrawler): response.raise_for_status() except Exception as error: error_count = self.feed['error_count'] + 1 - logger.warn('%r %r - an error occured while fetching feed; bumping' - ' error count to %r', self.feed['id'], - self.feed['title'], error_count) + logger.error('%r %r - an error occured while fetching ' + 'feed; bumping error count to %r', self.feed['id'], + self.feed['title'], error_count) future = self.query_pyagg('put', 'feed/%d' % self.feed['id'], {'error_count': error_count, 'last_error': str(error)}) |