Better logs. (#3650)

This commit is contained in:
Robert Klotzner
2021-08-19 20:07:59 +02:00
committed by GitHub
parent 1dafa08934
commit d6abe70c06
2 changed files with 6 additions and 0 deletions
@@ -300,12 +300,14 @@ impl RequestChunksPhase {
if erasure_chunk_hash != anticipated_hash {
tracing::debug!(
target: LOG_TARGET,
candidate_hash = ?params.candidate_hash,
?validator_index,
"Merkle proof mismatch",
);
} else {
tracing::trace!(
target: LOG_TARGET,
candidate_hash = ?params.candidate_hash,
?validator_index,
"Received valid chunk.",
);
@@ -314,6 +316,7 @@ impl RequestChunksPhase {
} else {
tracing::debug!(
target: LOG_TARGET,
candidate_hash = ?params.candidate_hash,
?validator_index,
"Invalid Merkle proof",
);
@@ -323,6 +326,7 @@ impl RequestChunksPhase {
Err((validator_index, e)) => {
tracing::debug!(
target: LOG_TARGET,
candidate_hash= ?params.candidate_hash,
err = ?e,
?validator_index,
"Failure requesting chunk",