Merge "replace string format arguments with function parameters"
This commit is contained in:
commit
d5a45fcd2d
@ -88,8 +88,8 @@ def http_log(args, kwargs, resp, body):
|
|||||||
else:
|
else:
|
||||||
log_method = logger.info
|
log_method = logger.info
|
||||||
|
|
||||||
log_method("REQ: %s" % "".join(string_parts))
|
log_method("REQ: %s", "".join(string_parts))
|
||||||
log_method("RESP STATUS: %s %s" % (resp.status, resp.reason))
|
log_method("RESP STATUS: %s %s", resp.status, resp.reason)
|
||||||
log_method("RESP HEADERS: %s", resp.getheaders())
|
log_method("RESP HEADERS: %s", resp.getheaders())
|
||||||
if body:
|
if body:
|
||||||
log_method("RESP BODY: %s", body)
|
log_method("RESP BODY: %s", body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user