Improve logging of UDP tracker packet dispatch error

This commit is contained in:
Matt Joiner 2021-11-23 08:33:29 +11:00
parent aae32e2a31
commit 615669ecf8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}
}