mirror of
https://github.com/YGGverse/titanit.git
synced 2026-03-31 17:15:30 +00:00
update debug messages
This commit is contained in:
parent
4eccb1875d
commit
753d8bd7c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue