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