aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-30 22:16:00 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-30 22:16:00 +0300
commit93ec99ecc45e40cafe0c21153b7d78ea17a985b2 (patch)
treedb939c6552975f4713d2efd31e8920ced15fdea5
parent969d82ccb619a5a2788781c397b58d01bbf70d32 (diff)
downloadlinaro-android-frontend-93ec99ecc45e40cafe0c21153b7d78ea17a985b2.tar.gz
Log Jenkins error response in full.
This might be verbose, but at least will allow to debug stuff.
-rw-r--r--android_build/frontend/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/android_build/frontend/api.py b/android_build/frontend/api.py
index 5b9ffc5..53a4144 100644
--- a/android_build/frontend/api.py
+++ b/android_build/frontend/api.py
@@ -170,9 +170,10 @@ def build_now(request):
try:
_authJenkins('job/' + job_name + '/buildWithParameters?delay=0sec', '', csrf_headers)
except urllib2.HTTPError, e:
- log.exception("Exception scheduling build:")
+ content = e.read()
+ log.exception("Exception scheduling build: " + content)
return HttpResponse(
- messageFromWinstoneErrorPage(e.read()),
+ messageFromWinstoneErrorPage(content),
status=e.code)
else:
return HttpResponse(status=200)