From ac543eb84b06ba9f0287b04560edda980c0545e8 Mon Sep 17 00:00:00 2001 From: Dustin Date: Sat, 1 Aug 2026 18:15:04 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20CloudService=20silent=20error=20?= =?UTF-8?q?=E2=86=92=20logging,=20Status=20zeigt=20Token-Fehler=20an?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/screens/cloud_screen.dart | 2 +- lib/services/cloud_service.dart | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/screens/cloud_screen.dart b/lib/screens/cloud_screen.dart index 2ca8acf..f22da5f 100644 --- a/lib/screens/cloud_screen.dart +++ b/lib/screens/cloud_screen.dart @@ -89,8 +89,8 @@ class _CloudScreenState extends State { if (!mounted) return; setState(() { _serverCount = st?['total'] ?? 0; - _status = st != null ? 'Verbunden' : 'Keine Verbindung'; _statusOk = st != null; + _status = st != null ? 'Verbunden' : 'Keine Verbindung (Token?)'; }); } diff --git a/lib/services/cloud_service.dart b/lib/services/cloud_service.dart index d5d1412..d8a9f70 100644 --- a/lib/services/cloud_service.dart +++ b/lib/services/cloud_service.dart @@ -98,7 +98,10 @@ class CloudService { .get(Uri.parse('$_base$path'), headers: _authHeader) .timeout(const Duration(seconds: 10)); if (r.statusCode == 200) return jsonDecode(r.body); - } catch (_) {} + MeloLogger().fehler('cloud_get', '${r.statusCode} $path'); + } catch (e) { + MeloLogger().fehler('cloud_get_error', '$path: $e'); + } return null; }