Changed debug to println due to not showing up
This commit is contained in:
parent
33fe6534cb
commit
0ac2ea5a75
|
@ -183,7 +183,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "actix-web-utils"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
dependencies = [
|
||||
"actix-web",
|
||||
"env_logger",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "actix-web-utils"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
edition = "2021"
|
||||
authors = ["Franklin E. Blanco"]
|
||||
description = "Just some useful addons for actix web."
|
||||
|
|
|
@ -9,7 +9,6 @@ use actix_web::{
|
|||
Error, HttpMessage,
|
||||
};
|
||||
use futures_util::{future::LocalBoxFuture, stream::StreamExt};
|
||||
use log::debug;
|
||||
|
||||
/// Pass this struct to App::new().wrap(HERE) to log the request body each time a request is made. Stole it from here: <https://github.com/actix/examples/blob/master/middleware/middleware/src/read_request_body.rs>
|
||||
pub struct Logging;
|
||||
|
@ -60,10 +59,8 @@ where
|
|||
body.extend_from_slice(&chunk?);
|
||||
}
|
||||
|
||||
debug!("Incoming Request body: {:#?}", body);
|
||||
println!("Incoming Request body: {:#?}", body);
|
||||
let res = svc.call(req).await?;
|
||||
|
||||
println!("response: {:?}", res.headers());
|
||||
Ok(res)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue