📚 Improved log file management in Backend 🖥️🔍
This commit is contained in:
@ -4969,3 +4969,188 @@ WHERE users.id = ?
|
||||
2025-06-11 10:45:17 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-11 10:45:17 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-11 10:45:17 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-11 10:51:33 - [app] app - [WARNING] WARNING - DatabaseCleanupManager nicht verfügbar - Fallback auf Legacy-Cleanup
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\instance\printer_manager.db
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-11 10:51:33 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-11 10:51:34 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-11 10:51:35 - [app] app - [WARNING] WARNING - DatabaseCleanupManager nicht verfügbar - Fallback auf Legacy-Cleanup
|
||||
2025-06-11 10:51:35 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\instance\printer_manager.db
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-11 10:51:36 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-11 10:51:37 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\dashboard.html')
|
||||
2025-06-11 10:51:37 - [app] app - [INFO] INFO - Locating template 'base.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\base.html')
|
||||
2025-06-11 10:51:37 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:51:37 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:38 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers/monitor/live-status
|
||||
2025-06-11 10:51:38 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:51:38 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
|
||||
2025-06-11 10:51:38 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:38 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:38 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/static/icons/icon-192.png
|
||||
2025-06-11 10:51:38 - [app] app - [INFO] INFO - Locating template 'errors/404.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\errors\\404.html')
|
||||
2025-06-11 10:51:39 - [app] app - [DEBUG] DEBUG - Request: POST /api/session/heartbeat
|
||||
2025-06-11 10:51:39 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:41 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 6, Status: off, Quelle: system
|
||||
2025-06-11 10:51:41 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 3, Status: off, Quelle: system
|
||||
2025-06-11 10:51:41 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 1, Status: off, Quelle: system
|
||||
2025-06-11 10:51:42 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 5, Status: off, Quelle: system
|
||||
2025-06-11 10:51:42 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 4, Status: off, Quelle: system
|
||||
2025-06-11 10:51:42 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 2, Status: off, Quelle: system
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers/monitor/live-status
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: POST /api/session/heartbeat
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/error-recovery/status
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
|
||||
2025-06-11 10:51:42 - [app] app - [INFO] INFO - ✅ Admin API: Error-Recovery-Status abgerufen
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:42 - [app] app - [INFO] INFO - ✅ API: Statistiken abgerufen
|
||||
2025-06-11 10:51:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:43 - [app] app - [INFO] INFO - ✅ Admin API: System-Health abgerufen
|
||||
2025-06-11 10:51:43 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:44 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
|
||||
2025-06-11 10:51:44 - [app] app - [INFO] INFO - Locating template 'calendar.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\calendar.html')
|
||||
2025-06-11 10:51:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
|
||||
2025-06-11 10:51:45 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:45 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/static/icons/icon-192.png
|
||||
2025-06-11 10:51:46 - [app] app - [DEBUG] DEBUG - Request: POST /api/session/heartbeat
|
||||
2025-06-11 10:51:46 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
|
||||
2025-06-11 10:51:56 - [app] app - [INFO] INFO - Locating template 'jobs.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\jobs.html')
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-11 10:51:57 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen
|
||||
2025-06-11 10:51:57 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:51:57 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/static/icons/icon-192.png
|
||||
2025-06-11 10:51:57 - [app] app - [DEBUG] DEBUG - Request: POST /api/session/heartbeat
|
||||
2025-06-11 10:51:57 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:11 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-11 10:52:11 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:52:26 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-11 10:52:41 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/error-recovery/status
|
||||
2025-06-11 10:52:44 - [app] app - [INFO] INFO - ✅ Admin API: Error-Recovery-Status abgerufen
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:44 - [app] app - [INFO] INFO - ✅ API: Statistiken abgerufen
|
||||
2025-06-11 10:52:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-11 10:52:45 - [app] app - [INFO] INFO - ✅ Admin API: System-Health abgerufen
|
||||
2025-06-11 10:52:45 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
|
Reference in New Issue
Block a user