From 3d350413cd8475b58a704da2b4fba10123a412ca Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Wed, 6 Mar 2024 22:12:01 +0100 Subject: [PATCH] fixed the 500 if --- .../src/gunicorn_logging_extension/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py index 536450a..8561a40 100644 --- a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py +++ b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py @@ -11,7 +11,7 @@ from gunicorn.glogging import CONFIG_DEFAULTS from gunicorn.glogging import Logger as gLogger import traceback -__version__ = "0.0.6" +__version__ = "0.0.7" CONFIG_DEFAULTS = { @@ -82,7 +82,7 @@ class Logger(gLogger): level = self.access_log.info if resp.status_code >= 400: level = self.access_log.warning - elif resp.status_code >= 500 + elif resp.status_code >= 500: level = self.access_log.error # wrap atoms: # - make sure atoms will be test case insensitively