From 9dc5ea0e947832e8c682c68df0aadbdc4bb27fa0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 28 Sep 2016 15:20:26 +0200 Subject: more tests --- src/crawler/classic_crawler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/crawler') diff --git a/src/crawler/classic_crawler.py b/src/crawler/classic_crawler.py index 2e292624..1105ed87 100644 --- a/src/crawler/classic_crawler.py +++ b/src/crawler/classic_crawler.py @@ -112,7 +112,7 @@ async def insert_database(user, feed): if None is articles: return [] - logger.debug('inserting articles for {}'.format(feed.title)) + logger.info('inserting articles for {}'.format(feed.title)) logger.info("Database insertion...") new_articles = [] @@ -131,6 +131,8 @@ async def insert_database(user, feed): # the content or the title logger.debug("Article %r (%r) already in the database.", article['title'], article['link']) + print("Article %r (%r) already in the database.", + article['title'], article['link']) existing_article = existing_article_req.first() new_updated_date = None try: -- cgit