Ignore utf-8 decode error during logging (#966)
This commit is contained in:
parent
a84ababb94
commit
7199459c69
|
@ -307,7 +307,7 @@ class HttpProtocolHandler(BaseTcpServerHandler):
|
|||
except Exception as exc:
|
||||
logger.exception('Error parsing the request', exc_info=exc)
|
||||
raise HttpProtocolException(
|
||||
'Error when parsing request: %s' % data.tobytes().decode('utf-8'),
|
||||
'Error when parsing request: %s' % data.tobytes().decode('utf-8', errors='ignore'),
|
||||
)
|
||||
if not self.request.is_complete:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue