]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Cloud backend: log URLs for HTTP responses, as well as requests.
authorDaira Hopwood <david-sarah@jacaranda.org>
Tue, 28 May 2013 21:33:51 +0000 (22:33 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 10 Jul 2015 05:10:30 +0000 (06:10 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/storage/backends/cloud/cloud_common.py

index e122dd1c466c085d1de0522f0f94fd88885a6be6..93c3fc509061905a5648559f3c905b4f303f7e15 100644 (file)
@@ -693,8 +693,8 @@ class HTTPClientMixin:
         d = defer.maybeDeferred(self._agent.request, method, url, Headers(request_headers), bodyProducer)
 
         def _got_response(response):
-            log.msg(format="%(what)s response: %(code)d %(phrase)s",
-                    what=what, code=response.code, phrase=response.phrase, level=log.OPERATIONAL)
+            log.msg(format="%(what)s response for %(url)s: %(code)d %(phrase)s",
+                    what=what, url=url, code=response.code, phrase=response.phrase, level=log.OPERATIONAL)
 
             if response.code < 200 or response.code >= 300:
                 response.deliverBody(Discard())