diff --git a/src/conn.rs b/src/conn.rs index a90690a..eabed0e 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -166,7 +166,7 @@ impl Connection { mut reads: mpsc::UnboundedReceiver, mut shutdown: oneshot::Receiver<()>, ) { - tracing::info!("uTP conn starting..."); + tracing::debug!("uTP conn starting..."); // If we are the initiating endpoint, then send the SYN. If we are the accepting endpoint, // then send the SYN-ACK. @@ -266,7 +266,7 @@ impl Connection { } } _ = &mut shutdown, if !shutting_down => { - tracing::info!("uTP conn initiating shutdown..."); + tracing::debug!("uTP conn initiating shutdown..."); shutting_down = true; } } @@ -276,7 +276,7 @@ impl Connection { } if let State::Closed { err } = self.state { - tracing::info!(?err, "uTP conn closing..."); + tracing::debug!(?err, "uTP conn closing..."); self.process_reads(); self.process_writes(Instant::now()); diff --git a/src/socket.rs b/src/socket.rs index 0d4bd57..b7cd092 100644 --- a/src/socket.rs +++ b/src/socket.rs @@ -119,7 +119,7 @@ where incoming_conns.insert(cid, packet); } } else { - tracing::warn!( + tracing::debug!( cid = %packet.conn_id(), packet = ?packet.packet_type(), seq = %packet.seq_num(), @@ -135,7 +135,7 @@ where SocketEvent::Outgoing((packet, dst)) => { let encoded = packet.encode(); if let Err(err) = socket.send_to(&encoded, &dst).await { - tracing::warn!( + tracing::debug!( %err, cid = %packet.conn_id(), packet = ?packet.packet_type(), @@ -146,7 +146,7 @@ where } } SocketEvent::Shutdown(cid) => { - tracing::info!(%cid.send, %cid.recv, "uTP conn shutdown"); + tracing::debug!(%cid.send, %cid.recv, "uTP conn shutdown"); conns.write().unwrap().remove(&cid); } }