chore: downgrade error and warn traces to debug (#2541)

This commit is contained in:
Matthias Seitz
2023-05-03 15:53:05 +02:00
committed by GitHub
parent 03977950c8
commit 10b97b29af
7 changed files with 16 additions and 16 deletions

View File

@ -13,7 +13,7 @@ use std::{
time::Duration,
};
use tokio::time::Interval;
use tracing::{info, warn};
use tracing::{debug, info};
/// The current high-level state of the node.
struct NodeState {
@ -67,7 +67,7 @@ impl NodeState {
}
NetworkEvent::SessionClosed { peer_id, reason } => {
let reason = reason.map(|s| s.to_string()).unwrap_or_else(|| "None".to_string());
warn!(target: "reth::cli", connected_peers = self.num_connected_peers(), peer_id = %peer_id, %reason, "Peer disconnected.");
debug!(target: "reth::cli", connected_peers = self.num_connected_peers(), peer_id = %peer_id, %reason, "Peer disconnected.");
}
_ => (),
}