📚 Improved log management system by updating and optimizing various log files across the backend. This includes logs for application, authentication, core system, data management, printer control, energy monitoring, hardware integration, job queue, monitoring analytics, permissions, scheduler, security suite, startup, and utilities collection.

This commit is contained in:
Till Tomczak
2025-06-20 11:56:50 +02:00
parent d3de963fdd
commit 19a9c64e66
15 changed files with 262 additions and 0 deletions

View File

@ -63688,3 +63688,152 @@ WHERE users.role = ?]
2025-06-20 11:19:33 - [app] app - [INFO] INFO - [STARTUP] Keine Steckdosen zur Initialisierung gefunden
2025-06-20 11:19:33 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://:
2025-06-20 11:26:38 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: database/myp.db
2025-06-20 11:54:42 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: database/myp.db
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung:
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [CONFIG] Production-Modus:
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment:
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode:
2025-06-20 11:54:47 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo:
2025-06-20 11:54:47 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] 🏢
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped:
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-20 11:54:48 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)...
2025-06-20 11:55:06 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden
2025-06-20 11:55:06 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://:
2025-06-20 11:55:07 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: database/myp.db
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [CONFIG] Production-Modus:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Konfiguration aktiviert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: erstellt, aktualisiert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP -Umgebung
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] 🏢
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped:
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-20 11:55:08 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Steckdosen (alle auf 'aus' = frei)...
2025-06-20 11:55:26 - [app] app - [WARNING] WARNING - [STARTUP] ⚠️ Keine der 6 Steckdosen konnte initialisiert werden
2025-06-20 11:55:26 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://:
2025-06-20 11:55:27 - [app] app - [INFO] INFO - Locating template 'login.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\\login.html')
2025-06-20 11:55:27 - [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-20 11:55:27 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:55:29 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:55:29 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:55:31 - [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-20 11:55:31 - [app] app - [INFO] INFO - Locating template 'macros/ui_components.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\\macros\\ui_components.html')
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:55:31 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:55:32 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:55:38 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 1, Status: disconnected, Quelle: system
2025-06-20 11:55:38 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:55:44 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 2, Status: disconnected, Quelle: system
2025-06-20 11:55:44 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:55:50 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 3, Status: disconnected, Quelle: system
2025-06-20 11:55:50 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:55:56 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 4, Status: disconnected, Quelle: system
2025-06-20 11:55:56 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:56:01 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:56:01 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:56:02 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 5, Status: disconnected, Quelle: system
2025-06-20 11:56:02 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:56:08 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 6, Status: disconnected, Quelle: system
2025-06-20 11:56:08 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker ->
2025-06-20 11:56:08 - [app] app - [DEBUG] DEBUG - ✅ Status-Updates für Drucker erfolgreich gespeichert
2025-06-20 11:56:08 - [app] app - [INFO] INFO - Locating template 'printers.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\\printers.html')
2025-06-20 11:56:08 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:56:08 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:56:08 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:56:38 - [app] app - [DEBUG] DEBUG - Request:
2025-06-20 11:56:38 - [app] app - [DEBUG] DEBUG - Response:
2025-06-20 11:56:45 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-20 11:56:45 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-20 11:56:45 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: