Browse Source

print address when sending of response failed

master
Miroslav Lichvar 5 years ago
parent
commit
4343d68c32
  1. 3
      src/main.rs

3
src/main.rs

@ -327,7 +327,8 @@ impl NtpServer { @@ -327,7 +327,8 @@ impl NtpServer {
println!("Thread #{} sent {:?}", thread_id, response);
}
},
Err(e) => println!("Thread #{} failed to send packet: {}", thread_id, e)
Err(e) => println!("Thread #{} failed to send packet to {}: {}",
thread_id, response.remote_addr, e)
}
},
None => {}

Loading…
Cancel
Save