summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-01-24 12:42:27 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2017-01-24 21:51:59 +0530
commit671c3f593cb351928cbadbe9ef33bbb7b04d6308 (patch)
tree346bffed0c74d73e9db88507dc3c7b0cfed8521b
parentf9282477158a39c3252943ea3d931b80b096983a (diff)
post-build-report: reduce debug level
This is needed to run post-build-report from a lava job. bug: https://bugs.linaro.org/show_bug.cgi?id=2821 Change-Id: Id256009554aac24d4760f12d87fdf193a8d03597 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--post-build-report.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/post-build-report.py b/post-build-report.py
index 5258100..2343ba5 100644
--- a/post-build-report.py
+++ b/post-build-report.py
@@ -64,8 +64,13 @@ def _push_object(auth_pw, backend_url, endpoint, params, files):
conn.putheader('Content-Length', str(len(body)))
conn.putheader('Host', usplit.netloc)
conn.endheaders()
+ conn.set_debuglevel(-1)
conn.send(body)
errcode, errmsg, headers = conn.getreply()
+ logger.info("return code: %s" % errcode)
+ logger.info(errmsg)
+ logger.info(headers)
+
if errcode < 300:
return conn.file.read()