Aufgabe 36: Structured Logging & Fehlerbehandlung #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Einheitliches Structured Logging (structlog) für alle Komponenten und robuste Fehlerbehandlung.
Ist-Stand
app.pyverwendetprint()-Statements undtraceback.print_exc()Akzeptanzkriterien
Logging
app.pyintegrieren (JSON-Format)print()-Aufrufe mehr im ProduktionscodeFehlerbehandlung
submission.status = "error"+submission.error_msgDateien
logging_config.py— NEU (structlog-Setup)error_handler.py— NEU (Flask-Error-Handler)app.py— Logging-Integrationworker.py— Worker-Loggingtests/test_logging.py— NEUtests/test_error_handler.py— NEUQualität