mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use warning level for 'Bad request' logs
#2491 Debug level might not be practical to enable in production.
This commit is contained in:
parent
d1f0f11b7b
commit
540b7100b3
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user