Skip to content

Commit

Permalink
fix(logger): Fix duplicate exception in log
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Aug 31, 2024
1 parent 82f7e67 commit 78e8f2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utils/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ mixin LoggerMixin {

/// Exception
void handle(AppException exception) {
talker
..error('$runtimeType: handle error:')
..handle(exception, exception.stackTrace, exception.message);
talker.handle(
exception,
exception.stackTrace,
'$runtimeType: handle error: ',
);
}

/// Handle [exception] then run [callback].
Expand Down

0 comments on commit 78e8f2d

Please sign in to comment.