mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
better logging for approval voting failures (#3180)
This commit is contained in:
committed by
GitHub
parent
b5e49c03ec
commit
736d0a48fe
@@ -2006,17 +2006,27 @@ async fn launch_approval(
|
|||||||
candidate_index,
|
candidate_index,
|
||||||
})).await;
|
})).await;
|
||||||
}
|
}
|
||||||
Ok(Ok(ValidationResult::Invalid(_))) => {
|
Ok(Ok(ValidationResult::Invalid(reason))) => {
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
target: LOG_TARGET,
|
target: LOG_TARGET,
|
||||||
"Detected invalid candidate as an approval checker {:?}",
|
?reason,
|
||||||
(candidate_hash, para_id),
|
?candidate_hash,
|
||||||
|
?para_id,
|
||||||
|
"Detected invalid candidate as an approval checker.",
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: issue dispute, but not for timeouts.
|
// TODO: issue dispute, but not for timeouts.
|
||||||
// https://github.com/paritytech/polkadot/issues/2176
|
// https://github.com/paritytech/polkadot/issues/2176
|
||||||
}
|
}
|
||||||
Ok(Err(_)) => return, // internal error.
|
Ok(Err(e)) => {
|
||||||
|
tracing::error!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
err = ?e,
|
||||||
|
"Failed to validate candidate due to internal error",
|
||||||
|
);
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user