reduce noisy test logs

This commit is contained in:
Igor Katson 2024-08-28 17:44:46 +01:00
parent e47134a45e
commit 9f798696ff
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 12 additions and 10 deletions

View file

@ -199,9 +199,10 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
.await
.context("error reading handshake")?;
let h_supports_extended = h.supports_extended();
debug!(
"connected: id={:?}",
try_decode_peer_id(Id20::new(h.peer_id))
trace!(
peer_id=?h.peer_id,
decoded_id=?try_decode_peer_id(Id20::new(h.peer_id)),
"connected",
);
if h.info_hash != self.info_hash.0 {
anyhow::bail!("info hash does not match");