Skip to content

Commit c34098c

Browse files
try to fix error message logging again
1 parent 3b771a2 commit c34098c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct AppError(anyhow::Error);
1010
// Tell axum how to convert `AppError` into a response.
1111
impl IntoResponse for AppError {
1212
fn into_response(self) -> Response {
13-
error!(error = ?self.0, "Returning Internal Server Error");
13+
error!("Returning Internal Server Error: {:?}", self.0);
1414
(
1515
StatusCode::INTERNAL_SERVER_ERROR,
1616
format!("Internal Server Error: {:?}", self.0),

0 commit comments

Comments
 (0)