mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	chore(mobile): add more catch all error log detail (#3893)
This commit is contained in:
		
							parent
							
								
									7097cf6319
								
							
						
					
					
						commit
						0a89c7ffc4
					
				@ -63,11 +63,15 @@ Future<void> initApp() async {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  FlutterError.onError = (details) {
 | 
					  FlutterError.onError = (details) {
 | 
				
			||||||
    FlutterError.presentError(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) {
 | 
					  PlatformDispatcher.instance.onError = (error, stack) {
 | 
				
			||||||
    log.severe(error.toString(), error, stack);
 | 
					    log.severe('Catch all error: ${error.toString()} - $error', error, stack);
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user