Unverified Commit cb42ab85 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Add some logging to the validation pipeline. (#1278)

parent ef01f47d
......@@ -336,14 +336,32 @@ pub fn full_output_validation_with_api<P>(
max_block_data_size,
&encoded_pov,
)
.and_then(|()| validate(
validation_pool,
&collation,
&pov_block,
&local_validation,
&global_validation,
&validation_code,
))
.and_then(|()| {
let res = validate(
validation_pool,
&collation,
&pov_block,
&local_validation,
&global_validation,
&validation_code,
);
match res {
Err(ref err) => log::debug!(
target: "validation",
"Failed to validate PoVBlock for parachain ({}): {:?}",
para_id,
err,
),
Ok(_) => log::debug!(
target: "validation",
"Successfully validated PoVBlock for parachain ({}).",
para_id,
),
}
res
})
.and_then(|validated| validated.full_output(n_validators))
}
......
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