mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-27 10:39:03 +02:00
fmt
This commit is contained in:
@ -185,8 +185,11 @@ where
|
||||
JsonBody::new(req, payload)
|
||||
.limit(limit)
|
||||
.map_err(move |e| {
|
||||
log::debug!("Failed to deserialize Json from payload. \
|
||||
Request path: {:?}", path);
|
||||
log::debug!(
|
||||
"Failed to deserialize Json from payload. \
|
||||
Request path: {:?}",
|
||||
path
|
||||
);
|
||||
if let Some(err) = err {
|
||||
(*err)(e, &req2)
|
||||
} else {
|
||||
|
@ -123,8 +123,11 @@ where
|
||||
serde_urlencoded::from_str::<T>(req.query_string())
|
||||
.map(|val| Ok(Query(val)))
|
||||
.unwrap_or_else(|e| {
|
||||
log::debug!("Failed during Query extractor deserialization. \
|
||||
Request path: {:?}", req.path());
|
||||
log::debug!(
|
||||
"Failed during Query extractor deserialization. \
|
||||
Request path: {:?}",
|
||||
req.path()
|
||||
);
|
||||
Err(e.into())
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user