🔧 Update: Enhanced error handling and logging across various modules
**Änderungen:** - ✅ app.py: Hinzugefügt, um CSRF-Fehler zu behandeln - ✅ models.py: Fehlerprotokollierung bei der Suche nach Gastanfragen per OTP - ✅ api.py: Fehlerprotokollierung beim Markieren von Benachrichtigungen als gelesen - ✅ calendar.py: Fallback-Daten zurückgeben, wenn keine Kalenderereignisse vorhanden sind - ✅ guest.py: Status-Check-Seite für Gäste aktualisiert - ✅ hardware_integration.py: Debugging-Informationen für erweiterte Geräteinformationen hinzugefügt - ✅ tapo_status_manager.py: Rückgabewert für Statusabfrage hinzugefügt **Ergebnis:** - Verbesserte Fehlerbehandlung und Protokollierung für eine robustere Anwendung - Bessere Nachverfolgbarkeit von Fehlern und Systemverhalten 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,3 +35,13 @@ WHERE user_permissions.can_approve_jobs = 1]
|
||||
[parameters: (1, None, None, 'guest_request', '{"request_id": 2, "name": "Till Tomczaktet", "created_at": "2025-06-13T07:13:42.749201", "status": "pending"}', '2025-06-13 07:13:42.954291', 0, None)]
|
||||
(Background on this error at: https://sqlalche.me/e/20/e3q8)
|
||||
2025-06-13 07:17:33 - [guest] guest - [INFO] INFO - Gastanfrage 2 genehmigt von Admin 1 (admin)
|
||||
2025-06-15 22:01:50 - [guest] guest - [ERROR] ERROR - Fehler beim Erstellen der Gastanfrage: (sqlite3.OperationalError) table notifications has no column named title
|
||||
[SQL: INSERT INTO notifications (user_id, title, message, type, payload, created_at, is_read, read_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?)]
|
||||
[parameters: (1, None, None, 'guest_request', '{"request_id": 1, "name": "teste", "created_at": "2025-06-15T22:01:49.940943", "status": "pending"}', '2025-06-15 22:01:50.180590', 0, None)]
|
||||
(Background on this error at: https://sqlalche.me/e/20/e3q8)
|
||||
2025-06-15 22:02:16 - [guest] guest - [INFO] INFO - Gastanfrage 1 genehmigt von Admin 1 (admin)
|
||||
2025-06-15 22:19:56 - [guest] guest - [ERROR] ERROR - Fehler beim Erstellen der Gastanfrage: (sqlite3.OperationalError) table notifications has no column named title
|
||||
[SQL: INSERT INTO notifications (user_id, title, message, type, payload, created_at, is_read, read_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?)]
|
||||
[parameters: (1, 'Neue Gastanfrage eingegangen', 'Gastanfrage von testeadmin@example.com wartet auf Ihre Genehmigung.', 'guest_request', '{"request_id": 2, "name": "testeadmin@example.com", "created_at": "2025-06-15T22:19:56.654964", "status": "pending"}', '2025-06-15 22:19:56.892143', 0, None)]
|
||||
(Background on this error at: https://sqlalche.me/e/20/e3q8)
|
||||
2025-06-15 22:30:45 - [guest] guest - [INFO] INFO - Neue Gastanfrage erstellt: ID 3, Name: testeadmin@example.com, OTP generiert
|
||||
|
Reference in New Issue
Block a user