From 615669ecf8e8852d31a0bd3d45fe8c914b4c3aaf Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 23 Nov 2021 08:33:29 +1100 Subject: [PATCH] Improve logging of UDP tracker packet dispatch error --- tracker/udp/conn-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/udp/conn-client.go b/tracker/udp/conn-client.go index 511c24fe..4e0d9852 100644 --- a/tracker/udp/conn-client.go +++ b/tracker/udp/conn-client.go @@ -39,7 +39,7 @@ func (cc *ConnClient) reader() { } err = cc.d.Dispatch(b[:n], addr) if err != nil { - log.Printf("dispatching packet received on %v (%q): %v", cc.conn, string(b[:n]), err) + log.Printf("dispatching packet received on %v: %v", cc.conn.LocalAddr(), err) } } }