mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 01:41:05 +01:00
Remove dead code and uncomment the dumpErrorToConsole message
This can be useful e.g. for the flatpak versions
This commit is contained in:
@@ -82,7 +82,6 @@ void main() async {
|
||||
_setupLogging();
|
||||
|
||||
final logger = Logger('main');
|
||||
//zx.setLogEnabled(kDebugMode);
|
||||
|
||||
// Locator to initialize exerciseDB
|
||||
await ServiceLocator().configure();
|
||||
@@ -97,9 +96,7 @@ void main() async {
|
||||
if (kReleaseMode) {
|
||||
FlutterError.onError = (FlutterErrorDetails details) {
|
||||
final stack = details.stack ?? StackTrace.empty;
|
||||
// if (kDebugMode) {
|
||||
// FlutterError.dumpErrorToConsole(details);
|
||||
// }
|
||||
FlutterError.dumpErrorToConsole(details);
|
||||
|
||||
// Don't show the full error dialog for network image loading errors.
|
||||
if (details.exception is NetworkImageLoadException) {
|
||||
|
||||
Reference in New Issue
Block a user