aboutsummaryrefslogtreecommitdiff
path: root/src/crawler/classic_crawler.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-29 14:46:10 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-29 14:46:10 +0200
commitad67a17f02ee9ffca1e15f2aed93b9ea89531be6 (patch)
treefeeb61754eef2f05736514536ace28db47830664 /src/crawler/classic_crawler.py
parentUpdated CHANGELOG. (diff)
downloadnewspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.tar.gz
newspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.tar.bz2
newspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.zip
Uses a strem handler for the logging on Heroku.
Diffstat (limited to 'src/crawler/classic_crawler.py')
-rw-r--r--src/crawler/classic_crawler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crawler/classic_crawler.py b/src/crawler/classic_crawler.py
index 4125dad7..f537cfd0 100644
--- a/src/crawler/classic_crawler.py
+++ b/src/crawler/classic_crawler.py
@@ -79,6 +79,7 @@ async def parse_feed(user, feed):
except Exception as e:
up_feed['last_error'] = str(e)
up_feed['error_count'] = feed.error_count + 1
+ logger.exception("error when parsing feed: " + str(e))
finally:
up_feed['last_retrieved'] = datetime.now(dateutil.tz.tzlocal())
if parsed_feed is None:
bgstack15