From: Daira Hopwood Date: Tue, 28 May 2013 21:33:51 +0000 (+0100) Subject: Cloud backend: log URLs for HTTP responses, as well as requests. X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/bcase?a=commitdiff_plain;h=4b1eab8f5fe65d4eec40cbf7ef3f2667123ce7c5;p=tahoe-lafs%2Ftahoe-lafs.git Cloud backend: log URLs for HTTP responses, as well as requests. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/storage/backends/cloud/cloud_common.py b/src/allmydata/storage/backends/cloud/cloud_common.py index e122dd1c..93c3fc50 100644 --- a/src/allmydata/storage/backends/cloud/cloud_common.py +++ b/src/allmydata/storage/backends/cloud/cloud_common.py @@ -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())