mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
fmt
This commit is contained in:
parent
6b42b2aaee
commit
52aebb3bca
@ -29,6 +29,7 @@ members = [
|
||||
"awc",
|
||||
"actix-http",
|
||||
"actix-files",
|
||||
"actix-framed",
|
||||
"actix-session",
|
||||
"actix-multipart",
|
||||
"actix-web-actors",
|
||||
|
@ -96,8 +96,11 @@ impl<T: 'static, P> FromRequest<P> for Data<T> {
|
||||
if let Some(st) = req.app_config().extensions().get::<Data<T>>() {
|
||||
Ok(st.clone())
|
||||
} else {
|
||||
log::debug!("Failed to construct App-level Data extractor. \
|
||||
Request path: {:?}", req.path());
|
||||
log::debug!(
|
||||
"Failed to construct App-level Data extractor. \
|
||||
Request path: {:?}",
|
||||
req.path()
|
||||
);
|
||||
Err(ErrorInternalServerError(
|
||||
"App data is not configured, to configure use App::data()",
|
||||
))
|
||||
|
@ -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())
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user