http: remove some ::log::debug statements

This commit is contained in:
Joakim Frostegård 2022-09-25 11:54:36 +02:00
parent 69c395a702
commit 0945e1dc6e
2 changed files with 0 additions and 12 deletions

View file

@ -248,13 +248,9 @@ impl Connection {
match Request::from_bytes(&self.request_buffer[..self.request_buffer_position]) { match Request::from_bytes(&self.request_buffer[..self.request_buffer_position]) {
Ok(request) => { Ok(request) => {
::log::debug!("received request: {:?}", request);
return Ok(Either::Right(request)); return Ok(Either::Right(request));
} }
Err(RequestParseError::Invalid(err)) => { Err(RequestParseError::Invalid(err)) => {
::log::debug!("invalid request: {:?}", err);
let response = FailureResponse { let response = FailureResponse {
failure_reason: "Invalid request".into(), failure_reason: "Invalid request".into(),
}; };

View file

@ -344,8 +344,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
valid_until, valid_until,
}; };
::log::debug!("peer: {:?}", peer);
let ip_or_key = request let ip_or_key = request
.key .key
.map(Either::Right) .map(Either::Right)
@ -356,8 +354,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
ip_or_key, ip_or_key,
}; };
::log::debug!("peer map key: {:?}", peer_map_key);
let opt_removed_peer = match peer_status { let opt_removed_peer = match peer_status {
PeerStatus::Leeching => { PeerStatus::Leeching => {
torrent_data.num_leechers += 1; torrent_data.num_leechers += 1;
@ -372,8 +368,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
PeerStatus::Stopped => torrent_data.peers.remove(&peer_map_key), PeerStatus::Stopped => torrent_data.peers.remove(&peer_map_key),
}; };
::log::debug!("opt_removed_peer: {:?}", opt_removed_peer);
match opt_removed_peer.map(|peer| peer.status) { match opt_removed_peer.map(|peer| peer.status) {
Some(PeerStatus::Leeching) => { Some(PeerStatus::Leeching) => {
torrent_data.num_leechers -= 1; torrent_data.num_leechers -= 1;
@ -384,8 +378,6 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
_ => {} _ => {}
} }
::log::debug!("peer request numwant: {:?}", request.numwant);
let response_peers = if let PeerStatus::Stopped = peer_status { let response_peers = if let PeerStatus::Stopped = peer_status {
Vec::new() Vec::new()
} else { } else {