@@ -187,10 +187,12 @@ pub async fn subxt_client() -> subxt::OnlineClient<subxt::PolkadotConfig> {
187187}
188188
189189pub trait AddressConverter {
190+ #[ allow( dead_code) ]
190191 fn to_account_id ( & self ) -> subxt:: utils:: AccountId32 ;
191192}
192193
193194pub trait AccountIdConverter {
195+ #[ allow( dead_code) ]
194196 fn to_address ( & self ) -> alloy:: primitives:: Address ;
195197}
196198
@@ -254,9 +256,16 @@ where
254256 let config =
255257 command. create_configuration ( this, tokio_runtime. handle ( ) . clone ( ) ) . unwrap ( ) ;
256258
257- command
258- . init ( & CliWrapper :: support_url ( ) , & CliWrapper :: impl_version ( ) , |_, _| { } , & config)
259- . unwrap ( ) ;
259+ // Handle logger initialization gracefully - it may already be initialized by previous
260+ // tests
261+ if let Err ( e) = command. init (
262+ & CliWrapper :: support_url ( ) ,
263+ & CliWrapper :: impl_version ( ) ,
264+ |_, _| { } ,
265+ & config,
266+ ) {
267+ warn ! ( "Logger initialization failed (likely already initialized): {e:?}" ) ;
268+ }
260269 sc_cli:: Runner :: < CliWrapper > :: new ( config, tokio_runtime, signals)
261270 }
262271 }
@@ -274,7 +283,7 @@ where
274283 max_past_logs : cli. eth . max_past_logs ,
275284 tracing_raw_max_memory_usage : cli. eth . tracing_raw_max_memory_usage ,
276285 } ;
277- warn ! ( "Starting the node with the following RPC config: {:?}" , rpc_config ) ;
286+ warn ! ( "Starting the node with the following RPC config: {rpc_config :?}" ) ;
278287
279288 runner
280289 . async_run ( |config| {
0 commit comments