mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Move tracing cli args to ImportParams (#4850)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user