diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index f321dd2d..f97d923c 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -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 = ""