Skip to content

Commit

Permalink
chore: print error perform logging in Debug format (#84)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Dec 7, 2024
1 parent feed999 commit 6ab6b33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

* `module_path` is replaced by `target` in `JsonLayout` and `TextLayout` ([#85](https://github.com/fast/logforth/pull/82)).
* `module_path` is replaced by `target` in `JsonLayout` and `TextLayout` ([#82](https://github.com/fast/logforth/pull/82)).
* Error perform logging now prints error in Debug format ([#84](https://github.com/fast/logforth/pull/84))

## [0.18.1] 2024-11-17

Expand Down
4 changes: 2 additions & 2 deletions src/logger/log_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn handle_error(record: &Record, error: anyhow::Error) {
Error perform logging.
Attempted to log: {args}
Record: {record:?}
Error: {error}
Error: {error:?}
"###,
args = record.args(),
record = record,
Expand All @@ -136,7 +136,7 @@ Error perform logging.
Error performing stderr logging after error occurred during regular logging.
Attempted to log: {args}
Record: {record:?}
Error: {error}
Error: {error:?}
Fallback error: {fallback_error}
"###,
args = record.args(),
Expand Down

0 comments on commit 6ab6b33

Please sign in to comment.