From 9bc9f64dce76b52dfdacee11acaabb31f923c9f8 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 13:55:20 +0000 Subject: [PATCH] Rename shared/logging/ to shared/log_config/ to avoid stdlib shadow shared/logging/ shadows Python's stdlib logging module, causing a circular import when any code does `import logging`. This breaks both the entrypoint Redis flush and Hypercorn app loading. Co-Authored-By: Claude Opus 4.6 --- infrastructure/factory.py | 2 +- {logging => log_config}/__init__.py | 0 {logging => log_config}/setup.py | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {logging => log_config}/__init__.py (100%) rename {logging => log_config}/setup.py (100%) diff --git a/infrastructure/factory.py b/infrastructure/factory.py index c057385..c79845f 100644 --- a/infrastructure/factory.py +++ b/infrastructure/factory.py @@ -9,7 +9,7 @@ from quart import Quart, request, g, send_from_directory from shared.config import init_config, config, pretty from shared.models import KV # ensure models imported -from shared.logging import configure_logging +from shared.log_config import configure_logging from shared.events import EventProcessor from shared.db.session import register_db diff --git a/logging/__init__.py b/log_config/__init__.py similarity index 100% rename from logging/__init__.py rename to log_config/__init__.py diff --git a/logging/setup.py b/log_config/setup.py similarity index 100% rename from logging/setup.py rename to log_config/setup.py