Skip to content

Commit 0b10cba

Browse files
committed
unconditionally log request error
Somehow exception logging was conditional on successful request uri parsing. Add it back for the other branch.
1 parent 72b8970 commit 0b10cba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gunicorn/workers/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def handle_error(self, req, client, addr, exc):
251251
else:
252252
if hasattr(req, "uri"):
253253
self.log.exception("Error handling request %s", req.uri)
254+
else:
255+
self.log.exception("Error handling request (no URI read)")
254256
status_int = 500
255257
reason = "Internal Server Error"
256258
mesg = ""

0 commit comments

Comments
 (0)