Fix log encoding for requests

This commit is contained in:
Rémi Hainaud 2011-04-28 19:05:21 +02:00
parent 474113454b
commit dcecc68223

View File

@ -98,7 +98,8 @@ def _log_request_content(request, function):
"Request headers:\n%s" % "\n".join(
": ".join((key, value))
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:
request._content = None