mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Better logs. (#3650)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user