From 9625553fd2967d894d570fa39bafdbac2c29a201 Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Wed, 20 Oct 2021 11:22:35 +1100
Subject: [PATCH] Demote some recent logs to debug

---
 peerconn.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/peerconn.go b/peerconn.go
index a5d1581f..a9384d79 100644
--- a/peerconn.go
+++ b/peerconn.go
@@ -1079,7 +1079,7 @@ func (c *PeerConn) mainReadLoop() (err error) {
 			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
@@ -1094,7 +1094,7 @@ func (c *PeerConn) mainReadLoop() (err error) {
 			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())
-- 
2.51.0