diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-15 07:10:02 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-15 07:10:02 +0200 |
commit | d188c68cfdc50b90c5e32edcc726409d25fcf08d (patch) | |
tree | 2c6ceb3b6951139f70e246a43d8549a2f1703319 | |
parent | Fixed indentation error. (diff) | |
download | newspipe-d188c68cfdc50b90c5e32edcc726409d25fcf08d.tar.gz newspipe-d188c68cfdc50b90c5e32edcc726409d25fcf08d.tar.bz2 newspipe-d188c68cfdc50b90c5e32edcc726409d25fcf08d.zip |
Disabling logs in feedgetter.
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 10 |
1 files changed, 5 insertions, 5 deletions
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() |