Skip to content

High performance self-hosted photo and video management solution.

chore(mobile): add more catch all error log detail (#3893)

Alex0a89c7ffc43e
diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart
index 4419ff58c2..07dc981393 100644
--- a/mobile/lib/main.dart
+++ b/mobile/lib/main.dart
@@ -63,11 +63,15 @@ Future<void> 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;
};
}