Commit 6fd70e9b authored by Arnaud Fontaine's avatar Arnaud Fontaine

Display response headers on error

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46019 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8cd03083
......@@ -81,7 +81,8 @@ class BenchmarkProcess(multiprocessing.Process):
msg = "%s: %s" % (target, traceback.format_exc())
try:
msg += self._browser.contents
msg += "Last response headers:\n%s\nLast response contents:\n%s" % \
(self._browser.headers, self._browser.contents)
except:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment