debug: uncommented debug prints
This commit is contained in:
parent
65e3cf64c4
commit
93e184ec71
1 changed files with 8 additions and 5 deletions
13
src/main.rs
13
src/main.rs
|
@ -103,6 +103,7 @@ impl FileInfo
|
||||||
if handshake_callback == size.to_string().as_bytes().to_vec()
|
if handshake_callback == size.to_string().as_bytes().to_vec()
|
||||||
{
|
{
|
||||||
println!("Done: Handshake -> {}", self.location);
|
println!("Done: Handshake -> {}", self.location);
|
||||||
|
println!("{:#?} ", handshake_callback);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -140,7 +141,8 @@ impl FileInfo
|
||||||
Ok(_) =>
|
Ok(_) =>
|
||||||
{
|
{
|
||||||
self.size_current += buffer.len();
|
self.size_current += buffer.len();
|
||||||
//println!("Done: Send Bytes -> {}", self.location);
|
println!("Done: Send Bytes -> {}", self.location);
|
||||||
|
println!("{:#?}", buffer);
|
||||||
}
|
}
|
||||||
Err(err_val) =>
|
Err(err_val) =>
|
||||||
{
|
{
|
||||||
|
@ -169,7 +171,8 @@ impl FileInfo
|
||||||
Ok(_) =>
|
Ok(_) =>
|
||||||
{
|
{
|
||||||
self.size_current += buffer.len();
|
self.size_current += buffer.len();
|
||||||
//println!("Done: Receive Bytes -> {}", self.location);
|
println!("Done: Receive Bytes -> {}", self.location);
|
||||||
|
println!("{:#?}", buffer);
|
||||||
}
|
}
|
||||||
Err(err_val) =>
|
Err(err_val) =>
|
||||||
{
|
{
|
||||||
|
@ -186,7 +189,8 @@ impl FileInfo
|
||||||
{
|
{
|
||||||
Ok(_) =>
|
Ok(_) =>
|
||||||
{
|
{
|
||||||
//println!("Done: Receive Until -> {}", self.location);
|
println!("Done: Receive Until -> {}", self.location);
|
||||||
|
println!("{:#?}", buffer);
|
||||||
buffer.pop();
|
buffer.pop();
|
||||||
}
|
}
|
||||||
Err(err_val) =>
|
Err(err_val) =>
|
||||||
|
@ -207,7 +211,6 @@ impl FileInfo
|
||||||
{
|
{
|
||||||
Some(mut handshake) =>
|
Some(mut handshake) =>
|
||||||
{
|
{
|
||||||
// try then commit
|
|
||||||
println!("Done: Handshake -> {}", self.location);
|
println!("Done: Handshake -> {}", self.location);
|
||||||
println!("{:#?} ", handshake);
|
println!("{:#?} ", handshake);
|
||||||
let size = String::from_utf8(handshake.clone()).unwrap().parse().unwrap();
|
let size = String::from_utf8(handshake.clone()).unwrap().parse().unwrap();
|
||||||
|
@ -229,7 +232,7 @@ impl FileInfo
|
||||||
{
|
{
|
||||||
Ok(_) =>
|
Ok(_) =>
|
||||||
{
|
{
|
||||||
//println!("Done: Write -> {} | {} bytes", self.location, self.size_current);
|
println!("Done: Write -> {} | {} bytes", self.location, self.size_current);
|
||||||
}
|
}
|
||||||
Err(err_val) =>
|
Err(err_val) =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue