Skip to content

Commit

Permalink
unconditionally log request error
Browse files Browse the repository at this point in the history
Somehow exception logging was conditional on successful request uri parsing.
Add it back for the other branch.
  • Loading branch information
pajod committed Dec 15, 2023
1 parent 72b8970 commit 0b10cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gunicorn/workers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def handle_error(self, req, client, addr, exc):
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 = ""
Expand Down

0 comments on commit 0b10cba

Please sign in to comment.