client.go | 2 +- config.go | 2 ++ diff --git a/client.go b/client.go index f3d281f8780a3a2d404310da8fd8139e017295e3..aba0ab3379c1899b318bc89cde6c4360e4460c62 100644 --- a/client.go +++ b/client.go @@ -1756,7 +1756,7 @@ c := t.worstBadConn(me) if c == nil { return false } - if missinggo.CryHeard() { + if me.config.Debug && missinggo.CryHeard() { log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) } c.Close() diff --git a/config.go b/config.go index 4bc12896f60299648310a991957ae91473b99de2..d6b79424407b6b43ff5e27e4d3ba9ee4f6e4ca2a 100644 --- a/config.go +++ b/config.go @@ -47,4 +47,6 @@ DisableEncryption bool `long:"disable-encryption"` IPBlocklist *iplist.IPList DisableIPv6 bool + // Perform logging and any other behaviour that will help debug. + Debug bool }