Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

log debug notification options

laurenspriem5a574c69d3a0
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
index c00f744736..c9cea0f76f 100644
--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -80,7 +80,8 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
final amount =
await NotificationService.instance.pendingNotifications();
showShortToast(context, '$amount pending notifications');
- } catch (e) {
+ } catch (e, s) {
+ logger.severe('pendingNotifications failed ', e, s);
await showGenericErrorDialog(context: context, error: e);
}
},
@@ -98,7 +99,8 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
await NotificationService.instance
.clearAllScheduledNotifications();
showShortToast(context, 'Done');
- } catch (e) {
+ } catch (e, s) {
+ logger.severe('clearAllScheduledNotifications failed ', e, s);
await showGenericErrorDialog(context: context, error: e);
}
},