Skip to content

Commit

Permalink
Log from all buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
anhcuky committed Jan 21, 2023
1 parent 1550899 commit a9d8ecb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/connect.rs
Expand Up @@ -907,10 +907,7 @@ mod verbose {
) -> Poll<Result<usize, io::Error>> {
match Pin::new(&mut self.inner).poll_write_vectored(cx, bufs) {
Poll::Ready(Ok(n)) => {
let buf = bufs
.iter()
.find(|b| !b.is_empty())
.map_or(&[][..], |b| &**b);
let buf: Vec<u8> = bufs.iter().flat_map(|b| &**b).map(|b| *b).collect();
log::trace!("{:08x} write: {:?}", self.id, Escape(&buf[..n]));
Poll::Ready(Ok(n))
}
Expand Down

0 comments on commit a9d8ecb

Please sign in to comment.