From: Matt Joiner Date: Thu, 12 May 2022 03:33:57 +0000 (+1000) Subject: Set debug log level for outgoing connection error X-Git-Tag: v1.43.1~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9434fe58a2bc3b6deb360713b015110dfa31794c;p=btrtrc.git Set debug log level for outgoing connection error Contributed by @tsynik in https://github.com/anacrolix/torrent/issues/702#issuecomment-1010523079. --- 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 }