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:
Paul J. Dorn 2023-12-07 08:16:33 +01:00
parent 72b8970dbf
commit 0b10cbab1d

View File

@ -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 = ""