mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 11:57:56 +00:00
Improve diagnostics for the ValidationOutputs checker / inclusion (#1926)
* Improve diagnostics for acceptance criteria failures during inclusion * Initialize the runtime logger just before logging during inclusion * Formatting suggestions Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Missed one suggestion Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -223,21 +223,7 @@ pub fn check_validation_outputs<T: initializer::Trait>(
|
||||
para_id: ParaId,
|
||||
outputs: primitives::v1::ValidationOutputs,
|
||||
) -> bool {
|
||||
match <inclusion::Module<T>>::check_validation_outputs(para_id, outputs) {
|
||||
Ok(()) => true,
|
||||
Err(e) => {
|
||||
frame_support::debug::RuntimeLogger::init();
|
||||
let err: &'static str = e.into();
|
||||
log::debug!(
|
||||
target: "candidate_validation",
|
||||
"Validation outputs checking for parachain `{}` failed: {}",
|
||||
u32::from(para_id),
|
||||
err,
|
||||
);
|
||||
|
||||
false
|
||||
}
|
||||
}
|
||||
<inclusion::Module<T>>::check_validation_outputs(para_id, outputs)
|
||||
}
|
||||
|
||||
/// Implementation for the `session_index_for_child` function of the runtime API.
|
||||
|
||||
Reference in New Issue
Block a user