Skip to content

Commit 1f38e6b

Browse files
authored
Merge pull request #2142 from Kobzol/verbose-log
Log axum anyhow errors using `Debug` impl
2 parents 6991b23 + 7174d9f commit 1f38e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct AppError(anyhow::Error);
1717

1818
impl IntoResponse for AppError {
1919
fn into_response(self) -> Response {
20-
tracing::error!("error={}", &self.0);
20+
tracing::error!("{:?}", &self.0);
2121
(
2222
StatusCode::INTERNAL_SERVER_ERROR,
2323
format!("Something went wrong: {}", self.0),

0 commit comments

Comments
 (0)