Skip to content

Commit

Permalink
add logger onTransition of bloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ishitgami committed Jul 14, 2024
1 parent e09c537 commit 7d6fde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/utilities/app_bloc_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class AppBlocObserver extends BlocObserver {
..write('Transition: ${transition.currentState.runtimeType}')
..writeln(' => ${transition.nextState.runtimeType}')
..write('New State: ${transition.nextState.toString().limit(100)}');
logger.info(buffer.toString());
super.onTransition(bloc, transition);
}

Expand Down

0 comments on commit 7d6fde1

Please sign in to comment.