Skip to content

Commit

Permalink
use tracing error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachstec committed Nov 2, 2024
1 parent c6a0816 commit 5d0e2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axum-extra/src/response/error_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub struct InternalServerError<T>(pub T);

impl<T: Error> IntoResponse for InternalServerError<T> {
fn into_response(self) -> Response {
let mut e: &dyn Error = &self.0;
error!(error = e);
let err = &self.0;
error!(%err);
(
StatusCode::INTERNAL_SERVER_ERROR,
"An error occurred while processing your request.",
Expand Down

0 comments on commit 5d0e2c0

Please sign in to comment.