diff options
Diffstat (limited to 'src/crawler')
-rw-r--r-- | src/crawler/classic_crawler.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |