Log bytes count

This commit is contained in:
asonix 2020-09-13 20:38:45 -05:00
parent 80826dc5a3
commit 973a15480c
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ edition = "2018"
actix-threadpool = "0.3.2"
bytes = "0.5.4"
futures = "0.3.5"
log = "0.4"
thiserror = "1.0"
[dev-dependencies]

View File

@ -592,6 +592,7 @@ where
fn start_send(mut self: Pin<&mut Self>, item: Bytes) -> Result<(), Self::Error> {
let mut file = self.file.take().expect("Use after completion");
log::debug!("Writing {} bytes", item.len());
self.fut = Some(
run(move || {