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/%5B/frontends/statistics?a=commitdiff_plain;h=a389ee719661f66344aba706ead854c3faa62aae;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())