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

Companion for Substrate#7795 (#2180)

* Companion for Substrate#7795

https://github.com/paritytech/substrate/pull/7795

* Fix missing test

* "Update Substrate"

Co-authored-by: parity-processbot <>
parent e76e543d
Pipeline #118240 passed with stages
in 26 minutes and 41 seconds
This diff is collapsed.
...@@ -24,7 +24,6 @@ service = { package = "polkadot-service", path = "../node/service", default-feat ...@@ -24,7 +24,6 @@ service = { package = "polkadot-service", path = "../node/service", default-feat
polkadot-parachain = { path = "../parachain", optional = true } polkadot-parachain = { path = "../parachain", optional = true }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" }
tracing-futures = "0.2.4" tracing-futures = "0.2.4"
frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true } frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true } sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
......
...@@ -252,7 +252,15 @@ pub fn run() -> Result<()> { ...@@ -252,7 +252,15 @@ pub fn run() -> Result<()> {
}) })
}, },
Some(Subcommand::ValidationWorker(cmd)) => { Some(Subcommand::ValidationWorker(cmd)) => {
let _ = sc_cli::init_logger("", sc_tracing::TracingReceiver::Log, None, false); let _ = sc_cli::init_logger(
sc_cli::InitLoggerParams {
pattern: "".into(),
tracing_receiver: Default::default(),
tracing_targets: None,
disable_log_reloading: false,
disable_log_color: true,
},
);
if cfg!(feature = "browser") || cfg!(target_os = "android") { if cfg!(feature = "browser") || cfg!(target_os = "android") {
Err(sc_cli::Error::Input("Cannot run validation worker in browser".into())) Err(sc_cli::Error::Input("Cannot run validation worker in browser".into()))
......
...@@ -21,7 +21,15 @@ use sp_keyring::Sr25519Keyring; ...@@ -21,7 +21,15 @@ use sp_keyring::Sr25519Keyring;
#[substrate_test_utils::test] #[substrate_test_utils::test]
async fn ensure_test_service_build_blocks(task_executor: TaskExecutor) { async fn ensure_test_service_build_blocks(task_executor: TaskExecutor) {
sc_cli::init_logger("", Default::default(), None, false).expect("Sets up logger"); sc_cli::init_logger(
sc_cli::InitLoggerParams {
pattern: "".into(),
tracing_receiver: Default::default(),
tracing_targets: None,
disable_log_reloading: false,
disable_log_color: true,
},
).expect("Sets up logger");
let mut alice = run_validator_node( let mut alice = run_validator_node(
task_executor.clone(), task_executor.clone(),
......
...@@ -25,7 +25,15 @@ async fn collating_using_adder_collator(task_executor: sc_service::TaskExecutor) ...@@ -25,7 +25,15 @@ async fn collating_using_adder_collator(task_executor: sc_service::TaskExecutor)
use futures::join; use futures::join;
use polkadot_primitives::v1::Id as ParaId; use polkadot_primitives::v1::Id as ParaId;
sc_cli::init_logger("", Default::default(), None, false).expect("Sets up logger"); sc_cli::init_logger(
sc_cli::InitLoggerParams {
pattern: "".into(),
tracing_receiver: Default::default(),
tracing_targets: None,
disable_log_reloading: false,
disable_log_color: true,
},
).expect("Sets up logger");
let para_id = ParaId::from(100); let para_id = ParaId::from(100);
......
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