summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgirlbossceo <june@girlboss.ceo>2023-07-27 16:23:24 +0000
committergirlbossceo <june@girlboss.ceo>2023-07-29 14:29:26 +0000
commit1f867a2c867c2ce84558e11e3dc8fa49060c21b4 (patch)
tree839732d6657e68051f7306aea9ce53e9fa48e292
parent97835541ce323ec06b68e2e46886d80cb29c7f24 (diff)
downloadconduit-1f867a2c867c2ce84558e11e3dc8fa49060c21b4.zip
Only print raw malformed JSON body in debug level
Signed-off-by: girlbossceo <june@girlboss.ceo>
-rw-r--r--src/api/ruma_wrapper/axum.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/api/ruma_wrapper/axum.rs b/src/api/ruma_wrapper/axum.rs
index 069e12b..bbd4861 100644
--- a/src/api/ruma_wrapper/axum.rs
+++ b/src/api/ruma_wrapper/axum.rs
@@ -292,10 +292,8 @@ where
debug!("{:?}", http_request);
let body = T::try_from_http_request(http_request, &path_params).map_err(|e| {
- warn!(
- "try_from_http_request failed: {:?}\nJSON body: {:?}",
- e, json_body
- );
+ warn!("try_from_http_request failed: {:?}", e);
+ debug!("JSON body: {:?}", json_body);
Error::BadRequest(ErrorKind::BadJson, "Failed to deserialize request.")
})?;