From 94fc1573333e73dc56a6655068dabfd7a80971b9 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 13 Aug 2025 21:20:48 +0200 Subject: [PATCH] Remove dead code and uncomment the dumpErrorToConsole message This can be useful e.g. for the flatpak versions --- lib/main.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 9c3a2ab65..e63e74859 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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) {