Fix: Aktiviere vollständiges Logging für Sync-Vorgänge #44

Merged
Ghost merged 0 commits from refs/pull/44/head into main 2025-11-13 12:11:44 +00:00
Ghost commented 2025-11-13 12:11:38 +00:00 (Migrated from codeberg.org)

Problem: [SYNC]-Logs erschienen nicht in docker logs, obwohl Sync-Vorgänge stattfanden. Ursache:

  • Fehlende Python logging-Konfiguration in app.py
  • Gunicorn fing app.logger Ausgaben nicht ab
  • Keine stdout/stderr Weiterleitung konfiguriert

Lösung:

  1. app.py:

    • Import logging und sys Module hinzugefügt
    • Logging-Konfiguration nach Flask-App-Initialisierung hinzugefügt
    • StreamHandler für stdout mit INFO-Level
    • Formatierung mit Timestamp, PID und Level
    • Handler werden gecleart und neu gesetzt
  2. docker-compose.yml:

    • Gunicorn mit --log-level=info
    • --access-logfile=- (stdout)
    • --error-logfile=- (stdout)
    • --capture-output für app.logger Ausgaben

Resultat: Alle [SYNC]-Logs werden jetzt in docker logs sichtbar sein.

Problem: [SYNC]-Logs erschienen nicht in docker logs, obwohl Sync-Vorgänge stattfanden. Ursache: - Fehlende Python logging-Konfiguration in app.py - Gunicorn fing app.logger Ausgaben nicht ab - Keine stdout/stderr Weiterleitung konfiguriert Lösung: 1. app.py: - Import logging und sys Module hinzugefügt - Logging-Konfiguration nach Flask-App-Initialisierung hinzugefügt - StreamHandler für stdout mit INFO-Level - Formatierung mit Timestamp, PID und Level - Handler werden gecleart und neu gesetzt 2. docker-compose.yml: - Gunicorn mit --log-level=info - --access-logfile=- (stdout) - --error-logfile=- (stdout) - --capture-output für app.logger Ausgaben Resultat: Alle [SYNC]-Logs werden jetzt in docker logs sichtbar sein.
Sign in to join this conversation.
No description provided.