Skip to content
Snippets Groups Projects
Commit 1f867a2c authored by 🥺's avatar 🥺 :transgender_flag:
Browse files

Only print raw malformed JSON body in debug level


Signed-off-by: default avatargirlbossceo <june@girlboss.ceo>
parent 97835541
No related branches found
No related tags found
No related merge requests found
......@@ -292,10 +292,8 @@ struct QueryParams {
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.")
})?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment