From 9f30d138e54bad6b62bc413b6e5c7ad0cd4b89ed Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 26 Dec 2013 18:40:50 +0100 Subject: Added log info message for new articles. --- pyaggr3g470r/feedgetter.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit