mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
unconditionally log request error
Somehow exception logging was conditional on successful request uri parsing. Add it back for the other branch.
This commit is contained in:
parent
72b8970dbf
commit
0b10cbab1d
@ -251,6 +251,8 @@ class Worker(object):
|
||||
else:
|
||||
if hasattr(req, "uri"):
|
||||
self.log.exception("Error handling request %s", req.uri)
|
||||
else:
|
||||
self.log.exception("Error handling request (no URI read)")
|
||||
status_int = 500
|
||||
reason = "Internal Server Error"
|
||||
mesg = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user