diff options
| author | Frederick Muriuki Muriithi | 2026-01-05 13:06:15 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-05 13:06:15 -0600 |
| commit | 43f0a336238204a00a8c30ca396e95aecb718705 (patch) | |
| tree | a242eeb8110f4d9c837b16abb0be8f9a12a912b1 | |
| parent | 06e90d15fe285ab37319c11f3c58be25e8bde339 (diff) | |
| download | gn-libs-43f0a336238204a00a8c30ca396e95aecb718705.tar.gz | |
Setup type information for `app_logger` argument.
Setup the type information to help with type-checking.
| -rw-r--r-- | gn_libs/logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
