From 4e8ad1d5f40dd734b51297966f777bd0110cfb81 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Thu, 23 Mar 2023 16:42:27 -0600 Subject: [PATCH] logs --- src/stream.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stream.rs b/src/stream.rs index f5f2ab5..716b041 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -311,7 +311,12 @@ impl OutputStream for OutputStreamUDP { let result = self.last_socket.as_ref().unwrap().send(&v.iter().cloned().collect::().as_bytes()); if result.is_err() { - eprintln!("OutputStreamUDP: failed to send: {:?}", result.err()); + eprintln!( + "OutputStreamUDP: failed to send to {}:{}: {:?}", + self.host.to_string(), + self.port.to_string(), + result.err(), + ); self.last_socket = None; } }