chore: demote session established log level (#4564)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Roman Krasiuk
2023-09-18 11:38:45 +03:00
committed by GitHub
parent 16072b9a94
commit 8baf2344d4

View File

@ -55,7 +55,7 @@ use std::{
};
use tokio::sync::mpsc::{self, error::TrySendError};
use tokio_stream::wrappers::UnboundedReceiverStream;
use tracing::{debug, error, info, trace, warn};
use tracing::{debug, error, trace, warn};
/// Manages the _entire_ state of the network.
///
@ -676,15 +676,16 @@ where
let total_active =
this.num_active_peers.fetch_add(1, Ordering::Relaxed) + 1;
this.metrics.connected_peers.set(total_active as f64);
info!(
target : "net",
debug!(
target: "net",
?remote_addr,
%client_version,
?peer_id,
?total_active,
kind=%direction,
peer_enode=%NodeRecord::new(remote_addr, peer_id),
"Session established"
);
debug!(target: "net", kind=%direction, peer_enode=%NodeRecord::new(remote_addr, peer_id), "Established peer enode");
if direction.is_incoming() {
this.swarm