From 9434fe58a2bc3b6deb360713b015110dfa31794c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 12 May 2022 13:33:57 +1000 Subject: [PATCH] Set debug log level for outgoing connection error Contributed by @tsynik in https://github.com/anacrolix/torrent/issues/702#issuecomment-1010523079. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 97b67d7c..d8b17064 100644 --- a/client.go +++ b/client.go @@ -772,7 +772,7 @@ func (cl *Client) outgoingConnection(t *Torrent, addr PeerRemoteAddr, ps PeerSou cl.noLongerHalfOpen(t, addr.String()) if err != nil { if cl.config.Debug { - cl.logger.Printf("error establishing outgoing connection to %v: %v", addr, err) + cl.logger.Levelf(log.Debug, "error establishing outgoing connection to %v: %v", addr, err) } return } -- 2.44.0