Unverified Commit 7ad10e1a authored by Robert Klotzner's avatar Robert Klotzner Committed by GitHub
Browse files

Better logs. (#3650)

parent f0acee31
Pipeline #153466 canceled with stages
in 23 minutes and 50 seconds
......@@ -502,6 +502,8 @@ impl ApprovalState {
}
struct CurrentlyCheckingSet {
/// Invariant: The contained `Vec` needs to stay sorted as we are using `binary_search_by_key`
/// on it.
candidate_hash_map: HashMap<CandidateHash, Vec<Hash>>,
currently_checking: FuturesUnordered<BoxFuture<'static, ApprovalState>>,
}
......
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment