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