diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-29 14:46:10 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-29 14:46:10 +0200 |
commit | ad67a17f02ee9ffca1e15f2aed93b9ea89531be6 (patch) | |
tree | feeb61754eef2f05736514536ace28db47830664 /src/crawler | |
parent | Updated CHANGELOG. (diff) | |
download | newspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.tar.gz newspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.tar.bz2 newspipe-ad67a17f02ee9ffca1e15f2aed93b9ea89531be6.zip |
Uses a strem handler for the logging on Heroku.
Diffstat (limited to 'src/crawler')
-rw-r--r-- | src/crawler/classic_crawler.py | 1 |
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: |