diff options
| author | pi coding agent <pi@localhost> | 2026-10-22 18:59:33 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 14:25:09 -0500 |
| commit | a897ceca02b78a9426652ac3092c79278cdc681c (patch) | |
| tree | 1ed499d3c583c93890d30864871740a276e4f718 /scripts/cli/logging.py | |
| parent | e3859b3945606aed7bd6a3861af8a525e061a2b1 (diff) | |
| download | gn-uploader-a897ceca02b78a9426652ac3092c79278cdc681c.tar.gz | |
Move scripts into the uploader package
Move the top-level `scripts` package to `uploader/scripts` so that it becomes the `uploader.scripts` package. All files are moved unchanged; references are updated in a follow-up commit.
Diffstat (limited to 'scripts/cli/logging.py')
| -rw-r--r-- | scripts/cli/logging.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/cli/logging.py b/scripts/cli/logging.py deleted file mode 100644 index 30ecf17..0000000 --- a/scripts/cli/logging.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Logging for scripts.""" -import logging - -def setup_logging( - script_logger: logging.Logger, - loglevel: str, - modules: tuple[str, ...] = tuple() -): - """Setup module-level loggers to the same log-level as the application.""" - logging.basicConfig( - encoding="utf-8", - format=("%(asctime)s — %(filename)s:%(lineno)s — %(levelname)s: " - "%(message)s"), - level=logging.INFO) - script_logger.setLevel(getattr(logging, loglevel.upper())) - effective_loglevel = logging.getLevelName(script_logger.getEffectiveLevel()) - for module in modules: - logging.getLogger(module).setLevel(effective_loglevel) |
