From a389ee719661f66344aba706ead854c3faa62aae Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 28 May 2013 22:33:51 +0100 Subject: [PATCH] Cloud backend: log URLs for HTTP responses, as well as requests. Signed-off-by: Daira Hopwood --- src/allmydata/storage/backends/cloud/cloud_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) -- 2.45.2