From c9f92351177b5d8909f67f78268475267b38f089 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 7 Jan 2020 10:44:58 +1100 Subject: [PATCH] Fix panic in logging Found by @ccampbell. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 769a6a37..586f39bb 100644 --- a/client.go +++ b/client.go @@ -843,7 +843,7 @@ func (cl *Client) runReceivedConn(c *connection) { } if t == nil { torrent.Add("received handshake for unloaded torrent", 1) - t.logger.Printf("received handshake for unloaded torrent") + log.Fmsg("received handshake for unloaded torrent").AddValue(debugLogValue).Log(cl.logger) cl.lock() cl.onBadAccept(c.remoteAddr) cl.unlock()