Enable logging in the puppet worker (#3411)

This is useful for tests where something is failing :D
This commit is contained in:
Bastian Köcher
2021-07-05 14:18:20 +02:00
committed by GitHub
parent 373a545118
commit c4d45c97dd
4 changed files with 7 additions and 0 deletions
+3
View File
@@ -88,6 +88,9 @@ mod worker_common;
#[doc(hidden)]
pub mod testing;
#[doc(hidden)]
pub use sp_tracing;
pub use error::{ValidationError, InvalidCandidate};
pub use priority::Priority;
pub use pvf::Pvf;
+2
View File
@@ -50,6 +50,8 @@ pub fn validate_candidate(
macro_rules! decl_puppet_worker_main {
() => {
fn main() {
$crate::sp_tracing::try_init_simple();
let args = std::env::args().collect::<Vec<_>>();
if args.len() < 2 {
panic!("wrong number of arguments");