Fix log encoding for requests
This commit is contained in:
parent
474113454b
commit
dcecc68223
@ -98,7 +98,8 @@ def _log_request_content(request, function):
|
|||||||
"Request headers:\n%s" % "\n".join(
|
"Request headers:\n%s" % "\n".join(
|
||||||
": ".join((key, value))
|
": ".join((key, value))
|
||||||
for key, value in request.headers.items()))
|
for key, value in request.headers.items()))
|
||||||
log.LOGGER.debug("Request content:\n%s" % request._content)
|
log.LOGGER.debug(
|
||||||
|
"Request content:\n%s" % request._decode(request._content))
|
||||||
else:
|
else:
|
||||||
request._content = None
|
request._content = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user