Skip to content

Commit

Permalink
Changed the loglevel of annoying log message "we are choked" to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Nov 13, 2021
1 parent cc8011c commit 99c5830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/librqbit/src/torrent_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl TorrentState {

fn reserve_next_needed_piece(&self, peer_handle: PeerHandle) -> Option<ValidPieceIndex> {
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();
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 99c5830

Please sign in to comment.