Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi committed Jun 5, 2020
1 parent 9cbc4b7 commit 2d89d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/log/log_bloc_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ class LogBlocDelegate implements BlocDelegate {

@override
void onEvent(Bloc bloc, Object event) {
_logger.info(event.toString());
_logger.info('Event { bloc: ${bloc.runtimeType}, event: ${event.toString()} }');
}

@override
void onError(Bloc bloc, Object error, StackTrace stacktrace) {
_logger.warning("Error: $error (Stacktrace: $stacktrace, Bloc Runtime-Type: ${bloc.runtimeType})");
_logger.warning('Error { bloc: ${bloc.runtimeType}, error: $error, stacktrace: $stacktrace }');
}

@override
Expand Down

0 comments on commit 2d89d43

Please sign in to comment.