chore: reduce noisy p2p log levels (dial, Kademlia, blend edge) (#3302)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidrusu
2026-08-27 08:07:36 +00:00
committed by GitHub
co-authored by Claude Fable 5
parent 36c77f920d
commit c1f68d2fa4
4 changed files with 4 additions and 4 deletions
@@ -18,7 +18,7 @@ pub enum ChainSyncErrorKind {
#[error("Stream error: {0}")]
OpenStreamError(#[from] libp2p_stream::OpenStreamError),
#[error("Failed to unpack data from reader: {0}")]
#[error("Packing error: {0}")]
PackingError(#[from] PackingError),
#[error("Failed to receive data from channel: {0}")]
@@ -31,7 +31,7 @@ impl<R: Clone + Send + RngCore + 'static> Behaviour<R> {
);
}
RoutingUpdate::Failed => {
tracing::error!(
tracing::debug!(
target: LOG_TARGET,
"Failed to add address {:?} to peer {:?}",
addr,
@@ -260,7 +260,7 @@ where
.unwrap();
let new_dial_attempt_number = dial_attempt.attempt_number.checked_add(1).unwrap();
if new_dial_attempt_number > self.max_dial_attempts_per_connection {
error!(
warn!(
target: LOG_TARGET,
"Giving up on message delivery: peer {peer_id:?} was not reachable after {} attempts. Dropping the message.",
self.max_dial_attempts_per_connection
@@ -212,7 +212,7 @@ impl<R: Clone + Send + RngCore + 'static> SwarmHandler<R> {
self.pending_dials.remove(&connection_id);
}
error => {
tracing::error!(
tracing::debug!(
target: LOG_TARGET,
"Failed to connect to peer: {peer_id:?} {connection_id:?} due to: {error}"
);