commit 44ebb4dacbdf356a237ad30649c4d2459b11b5e3 Author: Arturo Filastò arturo@filasto.net Date: Mon Jan 30 22:48:30 2017 +0000
Convert non fatal error messages into info level logs --- ooni/nettests/blocking/web_connectivity.py | 2 +- ooni/templates/httpt.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ooni/nettests/blocking/web_connectivity.py b/ooni/nettests/blocking/web_connectivity.py index c3877d4a..c7e59776 100644 --- a/ooni/nettests/blocking/web_connectivity.py +++ b/ooni/nettests/blocking/web_connectivity.py @@ -468,7 +468,7 @@ class WebConnectivityTest(httpt.HTTPTest, dnst.DNSTest): @experiment_http.addErrback def http_experiment_err(failure): failure_string = failureToString(failure) - log.err("Failed to perform HTTP request %s" % failure_string) + log.msg("Failed to perform HTTP request %s" % failure_string) self.report['http_experiment_failure'] = failure_string
experiment_http_response = yield experiment_http diff --git a/ooni/templates/httpt.py b/ooni/templates/httpt.py index b9308b78..47d5b955 100644 --- a/ooni/templates/httpt.py +++ b/ooni/templates/httpt.py @@ -378,9 +378,9 @@ class HTTPTest(NetTestCase):
def errback(failure, request): if request['tor']['is_tor']: - log.err("Error performing torified HTTP request: %s" % request['url']) + log.msg("Error performing torified HTTP request: %s" % request['url']) else: - log.err("Error performing HTTP request: %s" % request['url']) + log.msg("Error performing HTTP request: %s" % request['url']) failure_string = handleAllFailures(failure) previous_response = None if getattr(failure, "previousResponse", None):