Demote some recent logs to debug

This commit is contained in:
Matt Joiner 2021-10-20 11:22:35 +11:00
parent e31e191c8d
commit 9625553fd2
1 changed files with 2 additions and 2 deletions

View File

@ -1079,7 +1079,7 @@ func (c *PeerConn) mainReadLoop() (err error) {
if !c.peerChoking { if !c.peerChoking {
// Some clients do this for some reason. Transmission doesn't error on this, so we // Some clients do this for some reason. Transmission doesn't error on this, so we
// won't for consistency. // won't for consistency.
c.logProtocolBehaviour(log.Info, "received unchoke when already unchoked") c.logProtocolBehaviour(log.Debug, "received unchoke when already unchoked")
break break
} }
c.peerChoking = false c.peerChoking = false
@ -1094,7 +1094,7 @@ func (c *PeerConn) mainReadLoop() (err error) {
if preservedCount != 0 { if preservedCount != 0 {
// TODO: Yes this is a debug log but I'm not happy with the state of the logging lib // TODO: Yes this is a debug log but I'm not happy with the state of the logging lib
// right now. // right now.
log.Printf( c.logger.WithLevel(log.Debug).Printf(
"%v requests were preserved while being choked (fast=%v)", "%v requests were preserved while being choked (fast=%v)",
preservedCount, preservedCount,
c.fastEnabled()) c.fastEnabled())