[Erp5-report] r46019 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 30 11:17:57 CEST 2011


Author: arnaud.fontaine
Date: Tue Aug 30 11:17:57 2011
New Revision: 46019

URL: http://svn.erp5.org?rev=46019&view=rev
Log:
Display response headers on error

Modified:
    erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py

Modified: erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py?rev=46019&r1=46018&r2=46019&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py [utf8] Tue Aug 30 11:17:57 2011
@@ -81,7 +81,8 @@ class BenchmarkProcess(multiprocessing.P
         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
 



More information about the Erp5-report mailing list