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/simplejson/components/%22doc.html/(%5B%5E?a=commitdiff_plain;h=5fd52673470f8be47ffb12b3b1e63b42ddba4533;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())