Skip to content

Commit

Permalink
#22 - FormattedException: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
turn-a-round committed May 10, 2020
1 parent 77766d0 commit adca92b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sprightly/lib/utils/formatted_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ class FormattedException<T extends Exception> {
if (_debug) {
//// TODO: write structured log
// _logger
// ..withContext(contextMap: {name: logSource, error: _exception, stackTrace: stackTrace})
// ..withContext(contextMap: {
// name: logSource,
// error: _exception,
// messageParams: messageParams,
// stackTrace: stackTrace,
// })
// ..log(message);
log(message, name: logSource, error: _exception, stackTrace: stackTrace);
}
Expand Down

0 comments on commit adca92b

Please sign in to comment.