Backend: Python-Logging statt print, Diagnose in allen Fallbacks

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
team3
2026-06-12 07:52:33 +02:00
parent d97ec48bf1
commit 32f6fab16b
4 changed files with 49 additions and 4 deletions

11
backend/logsetup.py Normal file
View File

@@ -0,0 +1,11 @@
"""Zentrales Logging-Setup — einmal in main.py aufrufen, bevor die App entsteht."""
import logging
import os
def setup_logging() -> None:
logging.basicConfig(
level=os.environ.get("LOG_LEVEL", "INFO").upper(),
format="%(asctime)s %(levelname)s %(name)s %(message)s",
)