diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b51e1a..6627e0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/logger/log_impl.rs b/src/logger/log_impl.rs index 4313521..e0982be 100644 --- a/src/logger/log_impl.rs +++ b/src/logger/log_impl.rs @@ -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, @@ -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(),