mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 17:52:35 +01:00
Improve logging
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user