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",
|
"awc",
|
||||||
"actix-http",
|
"actix-http",
|
||||||
"actix-files",
|
"actix-files",
|
||||||
|
"actix-framed",
|
||||||
"actix-session",
|
"actix-session",
|
||||||
"actix-multipart",
|
"actix-multipart",
|
||||||
"actix-web-actors",
|
"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>>() {
|
if let Some(st) = req.app_config().extensions().get::<Data<T>>() {
|
||||||
Ok(st.clone())
|
Ok(st.clone())
|
||||||
} else {
|
} else {
|
||||||
log::debug!("Failed to construct App-level Data extractor. \
|
log::debug!(
|
||||||
Request path: {:?}", req.path());
|
"Failed to construct App-level Data extractor. \
|
||||||
|
Request path: {:?}",
|
||||||
|
req.path()
|
||||||
|
);
|
||||||
Err(ErrorInternalServerError(
|
Err(ErrorInternalServerError(
|
||||||
"App data is not configured, to configure use App::data()",
|
"App data is not configured, to configure use App::data()",
|
||||||
))
|
))
|
||||||
|
@ -185,8 +185,11 @@ where
|
|||||||
JsonBody::new(req, payload)
|
JsonBody::new(req, payload)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.map_err(move |e| {
|
.map_err(move |e| {
|
||||||
log::debug!("Failed to deserialize Json from payload. \
|
log::debug!(
|
||||||
Request path: {:?}", path);
|
"Failed to deserialize Json from payload. \
|
||||||
|
Request path: {:?}",
|
||||||
|
path
|
||||||
|
);
|
||||||
if let Some(err) = err {
|
if let Some(err) = err {
|
||||||
(*err)(e, &req2)
|
(*err)(e, &req2)
|
||||||
} else {
|
} else {
|
||||||
|
@ -123,8 +123,11 @@ where
|
|||||||
serde_urlencoded::from_str::<T>(req.query_string())
|
serde_urlencoded::from_str::<T>(req.query_string())
|
||||||
.map(|val| Ok(Query(val)))
|
.map(|val| Ok(Query(val)))
|
||||||
.unwrap_or_else(|e| {
|
.unwrap_or_else(|e| {
|
||||||
log::debug!("Failed during Query extractor deserialization. \
|
log::debug!(
|
||||||
Request path: {:?}", req.path());
|
"Failed during Query extractor deserialization. \
|
||||||
|
Request path: {:?}",
|
||||||
|
req.path()
|
||||||
|
);
|
||||||
Err(e.into())
|
Err(e.into())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user