aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-15 14:39:49 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:46:30 +0100
commitb1d92793268f9db737837c0899272d576c45c537 (patch)
tree63baffbbdc8d21b7c9c1fe2d0e3ce004549bebe3 /src/web/lib
parentfixing stuffs (diff)
downloadnewspipe-b1d92793268f9db737837c0899272d576c45c537.tar.gz
newspipe-b1d92793268f9db737837c0899272d576c45c537.tar.bz2
newspipe-b1d92793268f9db737837c0899272d576c45c537.zip
fixing logging
Diffstat (limited to 'src/web/lib')
-rw-r--r--src/web/lib/crawler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/lib/crawler.py b/src/web/lib/crawler.py
index 979ccbfc..7343ea4d 100644
--- a/src/web/lib/crawler.py
+++ b/src/web/lib/crawler.py
@@ -155,9 +155,9 @@ class FeedCrawler(AbstractCrawler):
response.raise_for_status()
except Exception as error:
error_count = self.feed['error_count'] + 1
- logger.error('%r %r - an error occured while fetching '
- 'feed; bumping error count to %r', self.feed['id'],
- self.feed['title'], error_count)
+ logger.exception('%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),
bgstack15