diff options
author | Christian Berendt <berendt@b1-systems.de> | 2014-05-19 19:52:35 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2014-06-03 07:17:42 +0200 |
commit | 9020b29141ac9c9b785947c358a29b6da8d441a8 (patch) | |
tree | e7d25e17613b8b2124dfe57e0deb27fef283b8d5 | |
parent | 3d0de79e26e2aa6285742c60aca3c164e9c2fbb9 (diff) | |
download | python-swiftclient-9020b29141ac9c9b785947c358a29b6da8d441a8.tar.gz |
replace string format arguments with function parameters
There are files containing string format arguments inside
logging messages. Using logging function parameters should
be preferred.
Change-Id: I90270908d27f0a57c184d5a547bb1af9b1381c95
-rw-r--r-- | swiftclient/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index f13e829..9352b6d 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -88,8 +88,8 @@ def http_log(args, kwargs, resp, body): else: log_method = logger.info - log_method("REQ: %s" % "".join(string_parts)) - log_method("RESP STATUS: %s %s" % (resp.status, resp.reason)) + log_method("REQ: %s", "".join(string_parts)) + log_method("RESP STATUS: %s %s", resp.status, resp.reason) log_method("RESP HEADERS: %s", resp.getheaders()) if body: log_method("RESP BODY: %s", body) |