diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-15 07:08:04 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-15 07:08:04 +0200 |
commit | be77ca297265f7cbd4e50054f41edaae36180309 (patch) | |
tree | 78f7c4699a868ed1db93f6f8b77b20b5c348d276 | |
parent | reverse sorted list (diff) | |
download | newspipe-be77ca297265f7cbd4e50054f41edaae36180309.tar.gz newspipe-be77ca297265f7cbd4e50054f41edaae36180309.tar.bz2 newspipe-be77ca297265f7cbd4e50054f41edaae36180309.zip |
Disabling logs.
-rwxr-xr-x | pyaggr3g470r/utils.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py index 5391604c..a97b7187 100755 --- a/pyaggr3g470r/utils.py +++ b/pyaggr3g470r/utils.py @@ -66,8 +66,8 @@ url_finders = [ \ re.compile("'\\<((mailto:)|)[-A-Za-z0-9\\.]+@[-A-Za-z0-9\\.]+") \ ] -import log -pyaggr3g470r_log = log.Log() +#import log +#pyaggr3g470r_log = log.Log() @contextmanager def opened_w_error(filename, mode="r"): @@ -99,17 +99,16 @@ def open_url(url): # server couldn't fulfill the request error = (url, e.code, \ http.server.BaseHTTPRequestHandler.responses[e.code][1]) - pyaggr3g470r_log.error(url + " " + str(e.code) + " " + \ - http.server.BaseHTTPRequestHandler.responses[e.code][1]) + #pyaggr3g470r_log.error(url + " " + str(e.code) + " " + http.server.BaseHTTPRequestHandler.responses[e.code][1]) return (False, error) except urllib.error.URLError as e: # failed to reach the server if type(e.reason) == str: error = (url, e.reason, e.reason) - pyaggr3g470r_log.error(url + " " + e.reason) + #pyaggr3g470r_log.error(url + " " + e.reason) else: error = (url, e.reason.errno, e.reason.strerror) - pyaggr3g470r_log.error(url + " " + str(e.reason.errno) + " " + \ + #pyaggr3g470r_log.error(url + " " + str(e.reason.errno) + " " + \ e.reason.strerror) return (False, error) |