Skip to content

Commit

Permalink
log path parameters when try http request fails
Browse files Browse the repository at this point in the history
Signed-off-by: strawberry <[email protected]>
  • Loading branch information
girlbossceo committed Mar 23, 2024
1 parent 6f473ef commit a7cfe1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/ruma_wrapper/axum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ where
debug!("{:?}", http_request);

let body = T::try_from_http_request(http_request, &path_params).map_err(|e| {
warn!("try_from_http_request failed: {:?}", e);
warn!("try_from_http_request failed: {e:?}\nPath parameters: {path_params:?}",);
debug!("JSON body: {:?}", json_body);
Error::BadRequest(ErrorKind::BadJson, "Failed to deserialize request.")
})?;
Expand Down

0 comments on commit a7cfe1c

Please sign in to comment.