From 93e184ec71e0e035b5b8e31c329b52b69e272638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:49:53 +0300 Subject: [PATCH] debug: uncommented debug prints --- src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 20333e9..756d2e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,6 +103,7 @@ impl FileInfo if handshake_callback == size.to_string().as_bytes().to_vec() { println!("Done: Handshake -> {}", self.location); + println!("{:#?} ", handshake_callback); } else { @@ -140,7 +141,8 @@ impl FileInfo Ok(_) => { self.size_current += buffer.len(); - //println!("Done: Send Bytes -> {}", self.location); + println!("Done: Send Bytes -> {}", self.location); + println!("{:#?}", buffer); } Err(err_val) => { @@ -169,7 +171,8 @@ impl FileInfo Ok(_) => { self.size_current += buffer.len(); - //println!("Done: Receive Bytes -> {}", self.location); + println!("Done: Receive Bytes -> {}", self.location); + println!("{:#?}", buffer); } Err(err_val) => { @@ -186,7 +189,8 @@ impl FileInfo { Ok(_) => { - //println!("Done: Receive Until -> {}", self.location); + println!("Done: Receive Until -> {}", self.location); + println!("{:#?}", buffer); buffer.pop(); } Err(err_val) => @@ -207,7 +211,6 @@ impl FileInfo { Some(mut handshake) => { - // try then commit println!("Done: Handshake -> {}", self.location); println!("{:#?} ", handshake); let size = String::from_utf8(handshake.clone()).unwrap().parse().unwrap(); @@ -229,7 +232,7 @@ impl FileInfo { Ok(_) => { - //println!("Done: Write -> {} | {} bytes", self.location, self.size_current); + println!("Done: Write -> {} | {} bytes", self.location, self.size_current); } Err(err_val) => {