aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crawler/classic_crawler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crawler/classic_crawler.py b/src/crawler/classic_crawler.py
index 610f3544..4f21a29f 100644
--- a/src/crawler/classic_crawler.py
+++ b/src/crawler/classic_crawler.py
@@ -163,10 +163,9 @@ async def insert_database(user, feed):
article = construct_article(article, feed)
try:
new_articles.append(art_contr.create(**article))
- logger.info("New article % (%r) added.",
- article['title'], article['link'])
+ logger.info('New article added: {}'.format(article['link']))
except Exception:
- logger.exception("Error when inserting article in database:")
+ logger.exception('Error when inserting article in database:')
continue
return new_articles
bgstack15