@@ -480,9 +480,9 @@ fn dry_run_error_event_check() {
480
480
new_test_ext_with_balances_and_assets ( balances, assets) . execute_with ( || {
481
481
let client = TestClient ;
482
482
let runtime_api = client. runtime_api ( ) ;
483
-
483
+ sp_tracing :: init_for_tests ( ) ;
484
484
let xcm_call = RuntimeCall :: XcmPallet ( {
485
- let result = pallet_xcm:: Call :: transfer_assets {
485
+ let inner_call = pallet_xcm:: Call :: transfer_assets {
486
486
dest : VersionedLocation :: from ( ( Parent , Parachain ( 1000 ) ) ) . into ( ) ,
487
487
beneficiary : VersionedLocation :: from ( AccountId32 { id : [ 0u8 ; 32 ] , network : None } )
488
488
. into ( ) ,
@@ -491,9 +491,9 @@ fn dry_run_error_event_check() {
491
491
weight_limit : Unlimited ,
492
492
} ;
493
493
let event = pallet_xcm:: EmittedEvent :: < TestRuntime > :: get ( ) ;
494
- println ! ( "*** xcm_call() => {:?}" , event ) ;
494
+ sp_tracing :: tracing :: debug! ( ?inner_call , ?event , "*** xcm_call()" ) ;
495
495
496
- result
496
+ inner_call
497
497
} ) ;
498
498
499
499
let origin = OriginCaller :: system ( RawOrigin :: Signed ( who) ) ;
@@ -511,7 +511,7 @@ fn dry_run_error_event_check() {
511
511
} else {
512
512
assert!( false , "Expected LocalExecutionIncomplete error" ) ;
513
513
}
514
- println !( "dry_run_effects.emitted_events={:?}" , dry_run_effects. emitted_events) ;
514
+ sp_tracing :: tracing :: debug !( "dry_run_effects.emitted_events={:?}" , dry_run_effects. emitted_events) ;
515
515
assert!( dry_run_effects. emitted_events. is_empty( ) ) ;
516
516
} ) ;
517
517
assert ! ( log_capture. contains( "xcm::pallet_xcm::execute_xcm_transfer: origin=Location" ) ) ;
0 commit comments