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
This commit is contained in:
parent
3d0de79e26
commit
9020b29141
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user