From b3873f023976c7be9b32f26f75ec350309bde440 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 10 Mar 2024 09:58:19 +0100 Subject: [PATCH] flattened a call to fileConfig --- .../src/gunicorn_logging_extension/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py index 038406f..c3f3ec9 100644 --- a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py +++ b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py @@ -77,7 +77,11 @@ 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)