print address when sending of response failed

This commit is contained in:
Miroslav Lichvar 2018-06-15 09:31:01 +02:00
parent 96b063e345
commit 4343d68c32
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ impl NtpServer {
println!("Thread #{} sent {:?}", thread_id, response); 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 => {} None => {}