mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-28 19:55:58 +03:00
More debug info when try_from_http_request fails
This commit is contained in:
parent
ada15ceacc
commit
215d909e59
1 changed files with 4 additions and 1 deletions
|
@ -281,7 +281,10 @@ where
|
||||||
debug!("{:?}", http_request);
|
debug!("{:?}", http_request);
|
||||||
|
|
||||||
let body = T::try_from_http_request(http_request, &path_params).map_err(|e| {
|
let body = T::try_from_http_request(http_request, &path_params).map_err(|e| {
|
||||||
warn!("{:?}\n{:?}", e, json_body);
|
warn!(
|
||||||
|
"try_from_http_request failed: {:?}\nJSON body: {:?}",
|
||||||
|
e, json_body
|
||||||
|
);
|
||||||
Error::BadRequest(ErrorKind::BadJson, "Failed to deserialize request.")
|
Error::BadRequest(ErrorKind::BadJson, "Failed to deserialize request.")
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue