Use warning level for 'Bad request' logs

#2491 
Debug level might not be practical to enable in production.
This commit is contained in:
sergeypeloton 2021-01-08 14:36:14 -05:00 committed by GitHub
parent d1f0f11b7b
commit 540b7100b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ class Worker(object):
status_int = 403
msg = "Invalid request from ip={ip}: {error}"
self.log.debug(msg.format(ip=addr[0], error=str(exc)))
self.log.warning(msg.format(ip=addr[0], error=str(exc)))
else:
if hasattr(req, "uri"):
self.log.exception("Error handling request %s", req.uri)