import logging.config import rich from app.config import settings from .app import get_app # Force rich to treat output as a terminal so ANSI colours are rendered # in worker processes where stdout/stderr may not be a TTY. if settings.logging_debug: rich.reconfigure(force_terminal=True) # Configure logging logging.config.dictConfig(settings.logging_config) # Create the ASGI application app = get_app()