From 540b7100b3aee5217c1e8e023dfa04741af6c520 Mon Sep 17 00:00:00 2001 From: sergeypeloton <46500149+sergeypeloton@users.noreply.github.com> Date: Fri, 8 Jan 2021 14:36:14 -0500 Subject: [PATCH] Use warning level for 'Bad request' logs #2491 Debug level might not be practical to enable in production. --- 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 a6d84bd2..136b4afc 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -245,7 +245,7 @@ class Worker(object): status_int = 403 msg = "Invalid request from ip={ip}: {error}" - self.log.debug(msg.format(ip=addr[0], error=str(exc))) + self.log.warning(msg.format(ip=addr[0], error=str(exc))) else: if hasattr(req, "uri"): self.log.exception("Error handling request %s", req.uri)