Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Pfaff 84c3cada2c
Bump version 2022-05-02 13:30:55 -04:00
Michael Pfaff cec213adda
Improve internal error logging 2022-05-02 13:23:04 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tide_tracing" name = "tide_tracing"
version = "0.6.2" version = "0.6.3"
authors = ["Michael Pfaff <michael@pfaff.dev>"] authors = ["Michael Pfaff <michael@pfaff.dev>"]
edition = "2021" edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

View File

@ -190,7 +190,7 @@ impl LogMiddleware {
let status = res.status(); let status = res.status();
match res.error() { match res.error() {
Some(e) => { Some(e) => {
error!("Response with internal error: {e}"); error!(status = %status, "Response with internal error: {e:?}");
} }
None => { None => {
debug!(status = %status, "Response"); debug!(status = %status, "Response");