update debug messages

This commit is contained in:
yggverse 2025-02-22 10:15:50 +02:00
parent 4eccb1875d
commit 753d8bd7c9

View file

@ -52,7 +52,7 @@ fn main() -> Result<()> {
fn handle(argument: Arc<Argument>, peer: SocketAddr, stream: &mut TlsStream<TcpStream>) {
use titanite::*;
println!("[{}] [info] [{peer}] New connection", now());
//println!("[{}] [info] [{peer}] New connection", now());
let mut input = vec![0; titanite::HEADER_MAX_LEN];
match stream.read(&mut input) {
Ok(0) => println!("[{}] [warning] [{peer}] Peer closed connection", now()),
@ -253,7 +253,7 @@ fn titan(
stream,
|result| match result {
Ok(()) => println!(
"[{}] [info] [{peer}] Data saved to {}",
"[{}] [info] [{peer}] Save to {}",
now(),
pmt.path.to_string_lossy()
),