From 9020b29141ac9c9b785947c358a29b6da8d441a8 Mon Sep 17 00:00:00 2001 From: Christian Berendt <berendt@b1-systems.de> Date: Mon, 19 May 2014 19:52:35 +0200 Subject: [PATCH] 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 --- swiftclient/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swiftclient/client.py b/swiftclient/client.py index f13e8295..9352b6df 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)