From 99c5830b978f0366f2bd4cb1e05d741ddd1a517d Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Sat, 13 Nov 2021 21:22:12 +0000 Subject: [PATCH] Changed the loglevel of annoying log message "we are choked" to debug --- crates/librqbit/src/torrent_state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/librqbit/src/torrent_state.rs b/crates/librqbit/src/torrent_state.rs index d6340be..a3271ee 100644 --- a/crates/librqbit/src/torrent_state.rs +++ b/crates/librqbit/src/torrent_state.rs @@ -368,7 +368,7 @@ impl TorrentState { fn reserve_next_needed_piece(&self, peer_handle: PeerHandle) -> Option { if self.am_i_choked(peer_handle)? { - warn!("we are choked by {}, can't reserve next piece", peer_handle); + debug!("we are choked by {}, can't reserve next piece", peer_handle); return None; } let mut g = self.locked.write(); @@ -772,7 +772,7 @@ impl PeerHandler { } fn on_i_am_choked(&self, handle: PeerHandle) { - warn!("we are choked by {}", handle); + debug!("we are choked by {}", handle); self.state .locked .write() @@ -804,7 +804,7 @@ impl PeerHandler { loop { match self.state.am_i_choked(handle) { Some(true) => { - warn!("we are choked by {}, can't reserve next piece", handle); + debug!("we are choked by {}, can't reserve next piece", handle); #[allow(unused_must_use)] { timeout(Duration::from_secs(60), notify.notified()).await;