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 { 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 { await NotificationService.instance .clearAllScheduledNotifications(); showShortToast(context, 'Done'); - } catch (e) { + } catch (e, s) { + logger.severe('clearAllScheduledNotifications failed ', e, s); await showGenericErrorDialog(context: context, error: e); } },