Merge pull request #2497 from sergeypeloton/patch-1

Use warning level for 'Bad request' logs
This commit is contained in:
Benoit Chesneau 2023-05-07 16:06:47 +02:00 committed by GitHub
commit b1d6418ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,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)