@@ -551,7 +551,7 @@ class CommonUtil {
551551 // TODO(platfowner): Consider some code (e.g. IN_LOCKUP_PERIOD, INSUFFICIENT_BALANCE) no failure
552552 // so that their transactions are not reverted.
553553 static isFailedFuncResultCode ( code ) {
554- return code !== FunctionResultCode . SUCCESS ;
554+ return code !== FunctionResultCode . SUCCESS && code !== FunctionResultCode . SKIP ;
555555 }
556556
557557 static isAppPath ( parsedPath ) {
@@ -1057,15 +1057,19 @@ class CommonUtil {
10571057 static createTimerFlagEnabledBandageMap ( timerFlags ) {
10581058 const LOG_HEADER = 'createTimerFlagEnabledBandageMap' ;
10591059 const map = new Map ( ) ;
1060- console . log ( `[${ LOG_HEADER } ] Registering bandage files:` ) ;
1060+ if ( process . env . LOG_BANDAGE_INFO ) {
1061+ console . log ( `[${ LOG_HEADER } ] Registering bandage files:` ) ;
1062+ }
10611063 const flagNameList = Object . keys ( timerFlags ) ;
10621064 for ( let i = 0 ; i < flagNameList . length ; i ++ ) {
10631065 const flagName = flagNameList [ i ] ;
10641066 const flag = timerFlags [ flagName ] ;
10651067 const enabledBlockNumber = CommonUtil . getEnabledBlockNumberFromTimerFlag ( flag ) ;
10661068 if ( CommonUtil . isNumber ( enabledBlockNumber ) && flag [ 'has_bandage' ] === true ) {
10671069 const bandageFilePath = path . resolve ( __dirname , '../db/bandage-files' , `${ flagName } .js` ) ;
1068- console . log ( `[${ LOG_HEADER } ] [${ i } ] Registering ${ bandageFilePath } ` ) ;
1070+ if ( process . env . LOG_BANDAGE_INFO ) {
1071+ console . log ( `[${ LOG_HEADER } ] [${ i } ] Registering ${ bandageFilePath } ` ) ;
1072+ }
10691073 if ( ! fs . existsSync ( bandageFilePath ) ) {
10701074 throw Error ( `Missing bandage file: ${ bandageFilePath } ` ) ;
10711075 }
@@ -1074,7 +1078,9 @@ class CommonUtil {
10741078 }
10751079 map . get ( enabledBlockNumber ) . push ( flagName ) ;
10761080 } else {
1077- console . log ( `[${ LOG_HEADER } ] [${ i } ] Skipping for timer flag: ${ flagName } ` ) ;
1081+ if ( process . env . LOG_BANDAGE_INFO ) {
1082+ console . log ( `[${ LOG_HEADER } ] [${ i } ] Skipping for timer flag: ${ flagName } ` ) ;
1083+ }
10781084 }
10791085 }
10801086 return map ;
0 commit comments