mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Enable trace timings logs for transaction factory (#4845)
* Enable trace timings logs for transaction factory.
This commit is contained in:
@@ -56,6 +56,16 @@ where
|
||||
_ => panic!("Factory is only supported for development and local testnet."),
|
||||
}
|
||||
|
||||
// Setup tracing.
|
||||
if let Some(tracing_targets) = cli_args.shared_params.tracing_targets.as_ref() {
|
||||
let subscriber = sc_tracing::ProfilingSubscriber::new(
|
||||
cli_args.shared_params.tracing_receiver.into(), tracing_targets
|
||||
);
|
||||
if let Err(e) = tracing::subscriber::set_global_default(subscriber) {
|
||||
panic!("Unable to set global default subscriber {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
let factory_state = FactoryState::new(
|
||||
cli_args.mode.clone(),
|
||||
cli_args.num,
|
||||
|
||||
Reference in New Issue
Block a user