aboutsummaryrefslogtreecommitdiff
path: root/src/crawler
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 15:20:26 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 15:20:26 +0200
commit9dc5ea0e947832e8c682c68df0aadbdc4bb27fa0 (patch)
tree03d65d4ae09ddf5403f711055e2202a166acdc4c /src/crawler
parentBugfix. (diff)
downloadnewspipe-9dc5ea0e947832e8c682c68df0aadbdc4bb27fa0.tar.gz
newspipe-9dc5ea0e947832e8c682c68df0aadbdc4bb27fa0.tar.bz2
newspipe-9dc5ea0e947832e8c682c68df0aadbdc4bb27fa0.zip
more tests
Diffstat (limited to 'src/crawler')
-rw-r--r--src/crawler/classic_crawler.py4
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:
bgstack15