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; }