diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 57f6aa9599..2d6d1155eb 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -4713,6 +4713,7 @@ dependencies = [ "sc-client-db", "sc-executor", "sc-service", + "sc-tracing", "sp-api", "sp-core", "sp-runtime", diff --git a/polkadot/cli/Cargo.toml b/polkadot/cli/Cargo.toml index 9ee9dc8312..05574d0bc1 100644 --- a/polkadot/cli/Cargo.toml +++ b/polkadot/cli/Cargo.toml @@ -23,6 +23,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" } service = { package = "polkadot-service", path = "../service", default-features = false, optional = true } service-new = { package = "polkadot-service-new", path = "../node/service", default-features = false, optional = true } diff --git a/polkadot/cli/src/command.rs b/polkadot/cli/src/command.rs index 5ea0319c83..45c2e5e679 100644 --- a/polkadot/cli/src/command.rs +++ b/polkadot/cli/src/command.rs @@ -248,7 +248,7 @@ pub fn run() -> Result<()> { }) }, Some(Subcommand::ValidationWorker(cmd)) => { - sc_cli::init_logger(""); + sc_cli::init_logger("", sc_tracing::TracingReceiver::Log, None); if cfg!(feature = "browser") { Err(sc_cli::Error::Input("Cannot run validation worker in browser".into()))