From a7cfe1c4aae2a520122893564b74659514408c30 Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 22 Mar 2024 23:42:38 -0400 Subject: [PATCH] log path parameters when try http request fails Signed-off-by: strawberry --- src/api/ruma_wrapper/axum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/ruma_wrapper/axum.rs b/src/api/ruma_wrapper/axum.rs index b8cba8410..bd0110d5d 100644 --- a/src/api/ruma_wrapper/axum.rs +++ b/src/api/ruma_wrapper/axum.rs @@ -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.") })?;