4. Versuch mit mehr Debug ausgeben

This commit is contained in:
concierge committed 2026-11-11 07:50:00 +01:00
1 parent 84aa7f9631
commit 572a881f72
8 files changed
+516 -4

No files matched your search

+7
View File
@@ -181,6 +181,12 @@ def wake_mobile_clients(**kwargs):
len(candidates), int(result.get('sent') or 0),
int(result.get('failed') or 0)
)
error_details = list(result.get('errors') or [])[:5]
for item in error_details:
current_app.logger.warning(
'FCM-Wake-Fehler: tenant=%s token=%s error=%s',
g.tenant_id, item.get('fingerprint'), item.get('error')
)
return jsonify({
'ok': True,
@@ -190,5 +196,6 @@ def wake_mobile_clients(**kwargs):
'failed': int(result.get('failed') or 0),
'valid_tokens': stats['valid_tokens'],
'connected': stats['connected'],
'errors': error_details,
'error': result.get('error'),
})