mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
Reduce log verbosity (#5440)
* Reduce log verbosity * Update node/network/availability-recovery/src/lib.rs Co-authored-by: Andronik <write@reusable.software> Co-authored-by: Andronik <write@reusable.software>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user