mirror of https://github.com/fafhrd91/actix-web
changed log::error to log::debug and fixed position of log for path
This commit is contained in:
parent
96baadde7a
commit
693f6ef541
|
@ -96,7 +96,7 @@ 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::error!("Failed to construct App-level Data extractor");
|
||||
log::debug!("Failed to construct App-level Data extractor");
|
||||
Err(ErrorInternalServerError(
|
||||
"App data is not configured, to configure use App::data()",
|
||||
))
|
||||
|
@ -236,7 +236,7 @@ impl<T: 'static, P> FromRequest<P> for RouteData<T> {
|
|||
if let Some(st) = req.route_data::<T>() {
|
||||
Ok(st.clone())
|
||||
} else {
|
||||
log::error!("Failed to construct Route-level Data extractor");
|
||||
log::debug!("Failed to construct Route-level Data extractor");
|
||||
Err(ErrorInternalServerError(
|
||||
"Route data is not configured, to configure use Route::data()",
|
||||
))
|
||||
|
|
|
@ -183,7 +183,7 @@ where
|
|||
JsonBody::new(req, payload)
|
||||
.limit(limit)
|
||||
.map_err(move |e| {
|
||||
log::error!("Failed to deserialize Json from payload");
|
||||
log::debug!("Failed to deserialize Json from payload");
|
||||
if let Some(err) = err {
|
||||
(*err)(e, &req2)
|
||||
} else {
|
||||
|
|
|
@ -162,11 +162,11 @@ where
|
|||
#[inline]
|
||||
fn from_request(req: &HttpRequest, _: &mut Payload<P>) -> Self::Future {
|
||||
de::Deserialize::deserialize(PathDeserializer::new(req.match_info()))
|
||||
.map(|inner| {
|
||||
log::error!("Failed to deserialize during Path extractor");
|
||||
Path { inner }
|
||||
.map(|inner| Path { inner })
|
||||
.map_err(|| {
|
||||
log::debug!("Failed to deserialize during Path extractor");
|
||||
ErrorNotFound
|
||||
})
|
||||
.map_err(ErrorNotFound)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ where
|
|||
serde_urlencoded::from_str::<T>(req.query_string())
|
||||
.map(|val| Ok(Query(val)))
|
||||
.unwrap_or_else(|e| {
|
||||
log::error!("Failed during Query extractor deserialization");
|
||||
log::debug!("Failed during Query extractor deserialization");
|
||||
Err(e.into())
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue