From a897ceca02b78a9426652ac3092c79278cdc681c Mon Sep 17 00:00:00 2001 From: pi coding agent Date: Thu, 22 Oct 2026 18:59:33 +0000 Subject: 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. --- scripts/cli/logging.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 scripts/cli/logging.py (limited to 'scripts/cli/logging.py') 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) -- cgit 1.4.1