From b3cb1947008d91e713f348810aa42259670827c2 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Fri, 3 May 2024 16:06:43 +0100 Subject: [PATCH] Downgrade a couple messages --- crates/librqbit/src/torrent_state/live/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/librqbit/src/torrent_state/live/mod.rs b/crates/librqbit/src/torrent_state/live/mod.rs index 1fc0da1..d14ec73 100644 --- a/crates/librqbit/src/torrent_state/live/mod.rs +++ b/crates/librqbit/src/torrent_state/live/mod.rs @@ -306,7 +306,7 @@ impl TorrentStateLive { let permit = match self.peer_semaphore.clone().try_acquire_owned() { Ok(permit) => permit, Err(_) => { - warn!("limit of live peers reached, dropping incoming peer"); + debug!("limit of live peers reached, dropping incoming peer"); self.peers.with_peer(checked_peer.addr, |p| { atomic_inc(&p.stats.counters.incoming_connections); }); @@ -1082,7 +1082,7 @@ impl PeerHandler { piece_req.started = Instant::now(); (*idx, old) } else { - warn!(?idx, ?piece_req, "attempted to steal but peer was writing"); + debug!(?idx, ?piece_req, "attempted to steal but peer was writing"); return None; } } else {