From ea08fad2e0b3376013fc89979dd2a9fead1e3420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Fri, 21 May 2021 01:53:28 +0100 Subject: [PATCH] Decreased log severity for verloc-related functionalities (#611) * Decreased log severity for verloc-related functionalities * Removed unused variable --- common/mixnode-common/src/rtt_measurement/listener.rs | 3 +-- common/mixnode-common/src/rtt_measurement/mod.rs | 2 +- common/mixnode-common/src/rtt_measurement/sender.rs | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/common/mixnode-common/src/rtt_measurement/listener.rs b/common/mixnode-common/src/rtt_measurement/listener.rs index e3a751de29..fad4e27ba1 100644 --- a/common/mixnode-common/src/rtt_measurement/listener.rs +++ b/common/mixnode-common/src/rtt_measurement/listener.rs @@ -79,8 +79,7 @@ impl ConnectionHandler { } pub(crate) async fn handle_connection(self: Arc, conn: TcpStream, remote: SocketAddr) { - // debug!("Starting connection handler for {:?}", remote); - info!("Starting connection handler for {:?}", remote); + debug!("Starting connection handler for {:?}", remote); let mut framed_conn = Framed::new(conn, EchoPacketCodec); while let Some(echo_packet) = framed_conn.next().await { diff --git a/common/mixnode-common/src/rtt_measurement/mod.rs b/common/mixnode-common/src/rtt_measurement/mod.rs index 0bd82d9b4d..4e0738d9e7 100644 --- a/common/mixnode-common/src/rtt_measurement/mod.rs +++ b/common/mixnode-common/src/rtt_measurement/mod.rs @@ -252,7 +252,7 @@ impl RttMeasurer { let execution_result = result.expect("the measurement task panicked!"); let measurement_result = match execution_result.0 { Err(err) => { - warn!( + debug!( "Failed to perform measurement for {} - {}", execution_result.1.to_base58_string(), err diff --git a/common/mixnode-common/src/rtt_measurement/sender.rs b/common/mixnode-common/src/rtt_measurement/sender.rs index 703ac33470..4c0de920e7 100644 --- a/common/mixnode-common/src/rtt_measurement/sender.rs +++ b/common/mixnode-common/src/rtt_measurement/sender.rs @@ -85,8 +85,7 @@ impl PacketSender { let mut results = Vec::with_capacity(self.packets_per_node); let mut seq = self.random_sequence_number(); - for i in 0..self.packets_per_node { - println!("packet {}/{}", i + 1, self.packets_per_node); + for _ in 0..self.packets_per_node { let packet = EchoPacket::new(seq, &self.identity); let start = tokio::time::Instant::now(); // TODO: should we get the start time after or before actually sending the data?