From 43f0a336238204a00a8c30ca396e95aecb718705 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 Jan 2026 13:06:15 -0600 Subject: Setup type information for `app_logger` argument. Setup the type information to help with type-checking. --- gn_libs/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_libs/logging.py') diff --git a/gn_libs/logging.py b/gn_libs/logging.py index 0317be6..28b4b41 100644 --- a/gn_libs/logging.py +++ b/gn_libs/logging.py @@ -33,7 +33,7 @@ def setup_logging(app: Flask) -> Flask: return __log_gunicorn__(app) if bool(software) else __log_dev__(app) -def setup_modules_logging(app_logger, modules: tuple[str, ...]): +def setup_modules_logging(app_logger: logging.Logger, modules: tuple[str, ...]): """Setup module-level loggers to the same log-level as the application.""" loglevel = logging.getLevelName(app_logger.getEffectiveLevel()) for module in modules: -- cgit 1.4.1