From 0ac2ea5a753275d6896a2affdb8db271c8ba013c Mon Sep 17 00:00:00 2001 From: Franklin Date: Mon, 29 Aug 2022 12:56:08 -0400 Subject: [PATCH] Changed debug to println due to not showing up --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/extensions/read_body.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3527351..db054c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "actix-web-utils" -version = "0.1.7" +version = "0.1.8" dependencies = [ "actix-web", "env_logger", diff --git a/Cargo.toml b/Cargo.toml index dfe9f2d..1e15789 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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." diff --git a/src/extensions/read_body.rs b/src/extensions/read_body.rs index a742935..9b9a0fd 100644 --- a/src/extensions/read_body.rs +++ b/src/extensions/read_body.rs @@ -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: 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) }) }