From 0a89c7ffc43e5d62862ae7b08243d3edce2409ed Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 27 Aug 2023 23:54:04 -0500 Subject: [PATCH] chore(mobile): add more catch all error log detail (#3893) --- mobile/lib/main.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart index 4419ff58c2c26..07dc9813931fb 100644 --- a/mobile/lib/main.dart +++ b/mobile/lib/main.dart @@ -63,11 +63,15 @@ Future initApp() async { FlutterError.onError = (details) { FlutterError.presentError(details); - log.severe(details.toString(), details, details.stack); + log.severe( + 'Catch all error: ${details.toString()} - ${details.exception} - ${details.library} - ${details.context} - ${details.stack}', + details, + details.stack, + ); }; PlatformDispatcher.instance.onError = (error, stack) { - log.severe(error.toString(), error, stack); + log.severe('Catch all error: ${error.toString()} - $error', error, stack); return true; }; }