[CalendarServer-changes] [6752] CalendarServer/trunk/contrib/performance/benchlib.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 18 08:37:56 PST 2011


Revision: 6752
          http://trac.macosforge.org/projects/calendarserver/changeset/6752
Author:   exarkun at twistedmatrix.com
Date:     2011-01-18 08:37:48 -0800 (Tue, 18 Jan 2011)
Log Message:
-----------
Emit more information when a response has an unexpected code.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/benchlib.py

Modified: CalendarServer/trunk/contrib/performance/benchlib.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.py	2011-01-18 16:36:49 UTC (rev 6751)
+++ CalendarServer/trunk/contrib/performance/benchlib.py	2011-01-18 16:37:48 UTC (rev 6752)
@@ -91,11 +91,13 @@
     def once():
         msg('emitting request')
         before = time()
-        d = agent.request(*paramgen())
+        params = paramgen()
+        d = agent.request(*params)
         def cbResponse(response):
             if response.code != responseCode:
                 raise Exception(
-                    "Unexpected response code received: %d" % (response.code,))
+                    "Request %r received unexpected response code: %d" % (
+                        params, response.code))
 
             d = readBody(response)
             def cbBody(ignored):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110118/bb6c8088/attachment-0001.html>


More information about the calendarserver-changes mailing list