chore(mobile): add more catch all error log detail (#3893)
This commit is contained in:
parent
7097cf6319
commit
0a89c7ffc4
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue