Move tracing cli args to ImportParams (#4850)

This commit is contained in:
Bastian Köcher
2020-02-07 13:21:46 +01:00
committed by GitHub
parent bf437cda8e
commit 9277a53052
4 changed files with 20 additions and 22 deletions
+2 -2
View File
@@ -57,9 +57,9 @@ where
}
// Setup tracing.
if let Some(tracing_targets) = cli_args.shared_params.tracing_targets.as_ref() {
if let Some(tracing_targets) = cli_args.import_params.tracing_targets.as_ref() {
let subscriber = sc_tracing::ProfilingSubscriber::new(
cli_args.shared_params.tracing_receiver.into(), tracing_targets
cli_args.import_params.tracing_receiver.into(), tracing_targets
);
if let Err(e) = tracing::subscriber::set_global_default(subscriber) {
panic!("Unable to set global default subscriber {}", e);