@@ -56,6 +56,8 @@ mod v2 {
5656 fn on_runtime_upgrade ( ) -> Weight {
5757 let decay_rate = DecayRate :: get ( ) ;
5858 let decay_factor = DecayFactor :: get ( ) ;
59+ log:: warn!( "Decay Rate: {:?}" , decay_rate) ;
60+ log:: warn!( "Decay Factor: {:?}" , decay_factor) ;
5961
6062 // Add the _decay_rate_ to the inflation params
6163 let result =
@@ -112,6 +114,7 @@ mod v2 {
112114
113115 #[ cfg( feature = "try-runtime" ) ]
114116 fn pre_upgrade ( ) -> Result < Vec < u8 > , TryRuntimeError > {
117+ log:: warn!( "pre_upgrade start" ) ;
115118 let old_config = v1:: ActiveInflationConfig :: < T > :: get ( ) . ok_or_else ( || {
116119 TryRuntimeError :: Other (
117120 "pallet-inflation::migration::v2: No old config found for ActiveInflationConfig" ,
@@ -128,6 +131,7 @@ mod v2 {
128131
129132 #[ cfg( feature = "try-runtime" ) ]
130133 fn post_upgrade ( data : Vec < u8 > ) -> Result < ( ) , TryRuntimeError > {
134+ log:: warn!( "post_upgrade start" ) ;
131135 // Decode the old values
132136 let ( old_config, old_params) : ( InflationConfigurationV1 , InflationParametersV1 ) =
133137 Decode :: decode ( & mut & data[ ..] ) . map_err ( |_| {
@@ -241,6 +245,7 @@ mod v2 {
241245 "pallet-inflation::migration::v2: Wrong storage version."
242246 ) ;
243247
248+ log:: warn!( "post_upgrade OK" ) ;
244249 Ok ( ( ) )
245250 }
246251 }
0 commit comments