@@ -645,6 +645,7 @@ pub mod pallet {
645645 pub fn force_set_next_set_id ( origin : OriginFor < T > , next_set_id : u32 ) -> DispatchResult {
646646 ensure_root ( origin) ?;
647647 <NextSetId < T > >:: put ( next_set_id) ;
648+ log ! ( info, "️️️force set next_set_id, next_set_id is : {:?} " , NextSetId :: <T >:: get( ) ) ;
648649 Ok ( ( ) )
649650 }
650651
@@ -1087,7 +1088,7 @@ pub mod pallet {
10871088 NextNotificationId :: < T > :: try_mutate ( |next_id| -> DispatchResultWithPostInfo {
10881089 if let Some ( v) = next_id. checked_add ( 1 ) {
10891090 * next_id = v;
1090- log ! ( debug, "️️️increase next_notification_id{:?} " , v) ;
1091+ log ! ( debug, "️️️increase next_notification_id: {:?} " , v) ;
10911092 } else {
10921093 return Err ( Error :: < T > :: NextNotificationIdOverflow . into ( ) )
10931094 }
@@ -1099,6 +1100,7 @@ pub mod pallet {
10991100 NextSetId :: < T > :: try_mutate ( |next_id| -> DispatchResultWithPostInfo {
11001101 if let Some ( v) = next_id. checked_add ( 1 ) {
11011102 * next_id = v;
1103+ log ! ( debug, "️️️increase next_set_id: {:?} " , v) ;
11021104 } else {
11031105 return Err ( Error :: < T > :: NextSetIdOverflow . into ( ) )
11041106 }
@@ -1252,6 +1254,11 @@ pub mod pallet {
12521254 let set_id = NextSetId :: < T > :: get ( ) ;
12531255 Self :: deposit_event ( Event :: NewPlannedValidators { set_id, validators } ) ;
12541256 Self :: increase_next_set_id ( ) ?;
1257+ log ! (
1258+ info,
1259+ "️️️processed updata validator set, next_set_id is : {:?} " ,
1260+ NextSetId :: <T >:: get( )
1261+ ) ;
12551262 } ,
12561263 Observation :: Burn ( event) => {
12571264 Self :: increase_next_notification_id ( ) ?;
@@ -1282,6 +1289,11 @@ pub mod pallet {
12821289 obs_id,
12831290 result
12841291 ) ;
1292+ log ! (
1293+ info,
1294+ "️️️processed burn observation, next_notification_id is : {:?} " ,
1295+ NextNotificationId :: <T >:: get( )
1296+ ) ;
12851297 } ,
12861298 Observation :: LockAsset ( event) => {
12871299 Self :: increase_next_notification_id ( ) ?;
@@ -1337,6 +1349,11 @@ pub mod pallet {
13371349 obs_id,
13381350 result
13391351 ) ;
1352+ log ! (
1353+ info,
1354+ "️️️processed lock observation, next_notification_id is : {:?} " ,
1355+ NextNotificationId :: <T >:: get( )
1356+ ) ;
13401357 } ,
13411358 }
13421359
0 commit comments