From: Matt Joiner Date: Wed, 25 Mar 2015 06:28:34 +0000 (+1100) Subject: Suppress some noisy errors that aren't interesting to the average user X-Git-Tag: v1.0.0~1245 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c471613cd0f9a67b0d8356f11298b1300c0f6081;p=btrtrc.git Suppress some noisy errors that aren't interesting to the average user --- diff --git a/client.go b/client.go index b6aad982..9587a948 100644 --- a/client.go +++ b/client.go @@ -687,7 +687,7 @@ func (cl *Client) incomingConnection(nc net.Conn, utp bool) { c.uTP = utp err := cl.runReceivedConn(c) if err != nil { - log.Print(err) + // log.Print(err) } } @@ -893,7 +893,6 @@ func (me *Client) outgoingConnection(t *torrent, addr string, ps peerSource) { // failure. me.noLongerHalfOpen(t, addr) if err != nil { - log.Print(err) return } if c == nil { @@ -903,7 +902,7 @@ func (me *Client) outgoingConnection(t *torrent, addr string, ps peerSource) { c.Discovery = ps err = me.runInitiatedHandshookConn(c, t) if err != nil { - log.Print(err) + // log.Print(err) } }