Commit 8ddea869 authored by Arnaud Fontaine's avatar Arnaud Fontaine

In debugging mode, display the page source upon error

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45997 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e85afeb
......@@ -421,6 +421,12 @@ class BenchmarkProcess(multiprocessing.Process):
target(result, self._browser)
except:
msg = "%s: %s" % (target, traceback.format_exc())
if self._argument_namespace.enable_debug:
try:
msg += self._browser.normalized_contents
except:
pass
if self._current_repeat == 1:
self._logger.error(msg)
raise
......
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