From 27be2879c8cd88d732873747a112b695fa9f523e Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Thu, 5 Sep 2024 02:13:35 +0200 Subject: [PATCH] Partially revert "unconditionally log request error" There is not need to excessively produce high-severity logs, while there are ways to reach that point from entirely benign network errors. This partially reverts commit 0b10cbab1d6368fcab2d5a7b6fe359a6cecc81a7. --- gunicorn/workers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index 1a0176d17..7c2fe0b30 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -264,7 +264,7 @@ def handle_error(self, req, client, addr, exc): if hasattr(req, "uri"): self.log.exception("Error handling request %s", req.uri) else: - self.log.exception("Error handling request (no URI read)") + self.log.debug("Error handling request (no URI read)") status_int = 500 reason = "Internal Server Error" mesg = ""