Skip to content

Commit

Permalink
Merge pull request #2497 from sergeypeloton/patch-1
Browse files Browse the repository at this point in the history
Use warning level for 'Bad request' logs
  • Loading branch information
benoitc committed May 7, 2023
2 parents 8a41cd2 + 540b710 commit b1d6418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/workers/base.py
Expand Up @@ -247,7 +247,7 @@ def handle_error(self, req, client, addr, exc):
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)
Expand Down

0 comments on commit b1d6418

Please sign in to comment.