@@ -55,6 +55,7 @@ mod v2 {
5555 {
5656 fn on_runtime_upgrade ( ) -> Weight {
5757 let decay_rate = DecayRate :: get ( ) ;
58+ log:: warn!( "Decay Rate: {:?}" , decay_rate) ;
5859
5960 // Add the decay rate to the active config
6061 let result = ActiveInflationConfig :: < T > :: translate :: < InflationConfigurationV1 , _ > (
@@ -124,6 +125,7 @@ mod v2 {
124125
125126 #[ cfg( feature = "try-runtime" ) ]
126127 fn pre_upgrade ( ) -> Result < Vec < u8 > , TryRuntimeError > {
128+ log:: warn!( "pre_upgrade start" ) ;
127129 let old_config = v1:: ActiveInflationConfig :: < T > :: get ( ) . ok_or_else ( || {
128130 TryRuntimeError :: Other (
129131 "pallet-inflation::migration::v2: No old config found for ActiveInflationConfig" ,
@@ -140,6 +142,7 @@ mod v2 {
140142
141143 #[ cfg( feature = "try-runtime" ) ]
142144 fn post_upgrade ( data : Vec < u8 > ) -> Result < ( ) , TryRuntimeError > {
145+ log:: warn!( "post_upgrade start" ) ;
143146 // Decode the old values
144147 let ( old_config, old_params) : ( InflationConfigurationV1 , InflationParametersV1 ) =
145148 Decode :: decode ( & mut & data[ ..] ) . map_err ( |_| {
@@ -252,6 +255,7 @@ mod v2 {
252255 "pallet-inflation::migration::v2: Wrong storage version."
253256 ) ;
254257
258+ log:: warn!( "post_upgrade OK" ) ;
255259 Ok ( ( ) )
256260 }
257261 }
0 commit comments