Skip to content

Commit

Permalink
Fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Sep 10, 2024
1 parent af30cae commit 5ee6c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/debug/types/file_logger_output.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class FileLoggerOutput extends LogOutput {
if (!Platform.environment.containsKey('FLUTTER_TEST')) {
_writeLog(message, event.level);

if (App.navigatorKey.currentContext != null) {
if (event.level.value >= Level.error.value &&
App.navigatorKey.currentContext != null) {
Future(() {
showSnackBar(App.navigatorKey.currentContext!, message,
error: true, navBar: false, fab: false);
Expand Down

0 comments on commit 5ee6c00

Please sign in to comment.