fix(main): move logger definition after all imports to fix ruff E402
Aegis CI / lint-and-test (push) Has been cancelled
Snyk Security Scan / Python vulnerabilities (backend) (push) Has been cancelled
Snyk Security Scan / npm vulnerabilities (frontend) (push) Has been cancelled
Snyk Security Scan / Docker image vulnerabilities (backend) (push) Has been cancelled

This commit is contained in:
kitos
2026-06-12 14:00:21 +02:00
parent 8ba9790625
commit 88c2af472e
+2 -2
View File
@@ -11,8 +11,6 @@ import logging
# Import os
import os
logger = logging.getLogger(__name__)
# Import AsyncGenerator from collections.abc
from collections.abc import AsyncGenerator
@@ -102,6 +100,8 @@ from starlette.middleware.base import BaseHTTPMiddleware
# Configure structured logging before any module initialises its own logger
setup_logging()
logger = logging.getLogger(__name__)
# ── Environment detection ─────────────────────────────────────────────────
_IS_PRODUCTION = os.environ.get("AEGIS_ENV", "").lower() == "production"