mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2497 from sergeypeloton/patch-1
Use warning level for 'Bad request' logs
This commit is contained in:
commit
b1d6418ebe
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user