Only print raw malformed JSON body in debug level
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
97835541ce
commit
1f867a2c86
1 changed files with 2 additions and 4 deletions
|
@ -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.")
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue