From 5fd52673470f8be47ffb12b3b1e63b42ddba4533 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