Skip to content

Commit

Permalink
Display Errors logs only in release mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu committed Jun 17, 2024
1 parent d50d1c2 commit e43b1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class LoggerSetup {
static LoggerSetup? _instance;

Future<void> setup() async {
Logger.root.level = kDebugMode ? Level.ALL : Level.INFO;
Logger.root.level = kDebugMode ? Level.ALL : Level.SEVERE;

/// Note : When in debug mode, logs are displayed
/// in debug console. There is no need to register log listeners.
Expand Down

0 comments on commit e43b1ba

Please sign in to comment.