diff --git a/node/node/src/command/mod.rs b/node/node/src/command/mod.rs index 208c0c8d0..a43e7fd60 100644 --- a/node/node/src/command/mod.rs +++ b/node/node/src/command/mod.rs @@ -66,7 +66,6 @@ pub fn run() -> sc_cli::Result<()> { match &cli.subcommand { Some(Subcommand::Key(cmd)) => cmd.run(&cli), Some(Subcommand::PartnerChains(cmd)) => { - partner_chains_node_commands::setup_log4rs()?; let make_dependencies = |config| { let components = service::new_partial(&config)?; Ok(( diff --git a/toolkit/cli/node-commands/src/lib.rs b/toolkit/cli/node-commands/src/lib.rs index a4cd06245..7b08dc617 100644 --- a/toolkit/cli/node-commands/src/lib.rs +++ b/toolkit/cli/node-commands/src/lib.rs @@ -153,7 +153,10 @@ where }) }, PartnerChainsSubcommand::RegistrationSignatures(cmd) => Ok(println!("{}", cmd.execute())), - PartnerChainsSubcommand::SmartContracts(cmd) => Ok(cmd.execute_blocking()?), + PartnerChainsSubcommand::SmartContracts(cmd) => { + crate::setup_log4rs()?; + Ok(cmd.execute_blocking()?) + }, } }