]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Suppress some noisy errors that aren't interesting to the average user
authorMatt Joiner <anacrolix@gmail.com>
Wed, 25 Mar 2015 06:28:34 +0000 (17:28 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 25 Mar 2015 06:28:34 +0000 (17:28 +1100)
client.go

index b6aad982b988c3ff9f8e9d72f764e5f1792ad27d..9587a94831d1287de164e4ce6f918bfd722663ec 100644 (file)
--- 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)
        }
 }