Add Debug flag to Config
I'll use this to squash the noisy logging for people who don't care.
This commit is contained in:
parent
2202a31b85
commit
4472a0e27a
@ -1756,7 +1756,7 @@ func (me *Client) addConnection(t *torrent, c *connection) bool {
|
|||||||
if c == nil {
|
if c == nil {
|
||||||
return false
|
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)
|
log.Printf("%s: dropping connection to make room for new one:\n %s", t, c)
|
||||||
}
|
}
|
||||||
c.Close()
|
c.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user