Improve internal error logging #4
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue