From 8dbc4d8a6ec539c75551834610f05fbb5896702b Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Tue, 3 May 2022 14:04:07 +0200 Subject: [PATCH] Reduce log verbosity (#5440) * Reduce log verbosity * Update node/network/availability-recovery/src/lib.rs Co-authored-by: Andronik Co-authored-by: Andronik --- .../node/network/availability-recovery/src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/polkadot/node/network/availability-recovery/src/lib.rs b/polkadot/node/network/availability-recovery/src/lib.rs index 20d564e540..965912efd0 100644 --- a/polkadot/node/network/availability-recovery/src/lib.rs +++ b/polkadot/node/network/availability-recovery/src/lib.rs @@ -427,7 +427,7 @@ impl RequestChunksFromValidators { Err((validator_index, e)) => { self.error_count += 1; - gum::debug!( + gum::trace!( target: LOG_TARGET, candidate_hash= ?params.candidate_hash, err = ?e, @@ -438,8 +438,18 @@ impl RequestChunksFromValidators { match e { RequestError::InvalidResponse(_) => { metrics.on_chunk_request_invalid(); + + gum::debug!( + target: LOG_TARGET, + candidate_hash = ?params.candidate_hash, + err = ?e, + ?validator_index, + "Chunk fetching response was invalid", + ); }, RequestError::NetworkError(err) => { + // No debug logs on general network errors - that became very spammy + // occasionally. if let RequestFailure::Network(OutboundFailure::Timeout) = err { metrics.on_chunk_request_timeout(); } else {