From d188c68cfdc50b90c5e32edcc726409d25fcf08d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 15 Oct 2013 07:10:02 +0200 Subject: Disabling logs in feedgetter. --- pyaggr3g470r/feedgetter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index ad4d8df6..6f8d6447 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -39,8 +39,8 @@ import conf import search import utils -import log -pyaggr3g470r_log = log.Log() +#import log +#pyaggr3g470r_log = log.Log() list_of_threads = [] @@ -120,7 +120,7 @@ class FeedGetter(object): description = BeautifulSoup(description, "html.parser").decode() article_title = BeautifulSoup(article.title, "html.parser").decode() except Exception as E: - pyaggr3g470r_log.error("Problem when sanitizing the content of the feed: " + feed.link) + #pyaggr3g470r_log.error("Problem when sanitizing the content of the feed: " + feed.link) article_title = article.title try: @@ -139,7 +139,7 @@ class FeedGetter(object): search.add_to_index([article], feed) except: print("Whoosh error.") - pyaggr3g470r_log.error("Whoosh error.") + #pyaggr3g470r_log.error("Whoosh error.") continue if conf.MAIL_ENABLED and feed["mail"]: @@ -157,4 +157,4 @@ if __name__ == "__main__": # Point of entry in execution mode feed_getter = FeedGetter() # Retrieve all feeds - feed_getter.retrieve_feed() \ No newline at end of file + feed_getter.retrieve_feed() -- cgit