aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2013-12-26 18:40:50 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2013-12-26 18:40:50 +0100
commit9f30d138e54bad6b62bc413b6e5c7ad0cd4b89ed (patch)
tree210ec0d653c826e516a8b1d89d90c290510b744b /pyaggr3g470r/feedgetter.py
parentLogging for the feedgetter module. (diff)
downloadnewspipe-9f30d138e54bad6b62bc413b6e5c7ad0cd4b89ed.tar.gz
newspipe-9f30d138e54bad6b62bc413b6e5c7ad0cd4b89ed.tar.bz2
newspipe-9f30d138e54bad6b62bc413b6e5c7ad0cd4b89ed.zip
Added log info message for new articles.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index b27b63af..e8c8b7d7 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -133,6 +133,7 @@ class FeedGetter(object):
article = models.Article(post_date, real_url, article_title, description, False, False)
try:
article.save()
+ pyaggr3g470r_log.info("New article %s (%s) added." % (article_title, real_url))
except Exception as e:
pyaggr3g470r_log.error("Error when inserting article in database: " + str(e))
continue
bgstack15