Improve logging

This commit is contained in:
Roland Geider
2026-07-29 17:42:31 +02:00
parent 630d4864d8
commit 30cc2fc959
2 changed files with 4 additions and 4 deletions

View File

@@ -230,8 +230,8 @@ class SyncStatusDialog extends ConsumerWidget {
);
try {
await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
} catch (e) {
_logger.warning('Error opening issue tracker: $e');
} catch (e, s) {
_logger.warning('Error opening issue tracker', e, s);
}
},
child: const Text('Report issue'),

View File

@@ -125,8 +125,8 @@ Future<String?> collectSyncDiagnostics({String? serverUrl}) async {
pendingUploads: queue.count,
server: serverCategory(serverUrl),
);
} catch (e) {
_logger.warning('Could not collect sync diagnostics: $e');
} catch (e, s) {
_logger.warning('Could not collect sync diagnostics', e, s);
return null;
}
}