From dde8c74fa424f7c0de8ad64d289e50567ae78395 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 10 Mar 2024 09:42:04 +0100 Subject: [PATCH] bumped the version --- .../src/gunicorn_logging_extension/__init__.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py index 7ac347a..4b520e5 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 logging.config import dictConfig, fileConfig from gunicorn.glogging import CONFIG_DEFAULTS from gunicorn.glogging import Logger as gLogger -__version__ = "0.0.8" +__version__ = "0.0.9" CONFIG_DEFAULTS = { @@ -77,9 +77,7 @@ class Logger(gLogger): defaults = CONFIG_DEFAULTS.copy() defaults["__file__"] = cfg.logconfig defaults["here"] = os.path.dirname(cfg.logconfig) - fileConfig( - cfg.logconfig, defaults=defaults, disable_existing_loggers=False - ) + fileConfig(cfg.logconfig, defaults=defaults, disable_existing_loggers=False) else: msg = "Error: log config '%s' not found" raise RuntimeError(msg % cfg.logconfig) @@ -93,9 +91,7 @@ class Logger(gLogger): level = self.access_log.warning elif resp.status_code >= 500: level = self.access_log.error - safe_atoms = self.atoms_wrapper_class( - self.atoms(resp, req, environ, request_time) - ) + safe_atoms = self.atoms_wrapper_class(self.atoms(resp, req, environ, request_time)) extra = dict( METHOD=environ.get("REQUEST_METHOD"), PATH=environ.get("PATH_INFO"),