@@ -1259,7 +1259,7 @@ loop:
12591259func (l * validator ) scanner (stdout io.Reader , p publisher ) error {
12601260 scanner := bufio .NewScanner (stdout )
12611261
1262- serverStart := "INF starting node with ABCI Tendermint in-process "
1262+ serverStart := "INF starting node with ABCI "
12631263 replayBlocksStart := "INF ABCI Replay Blocks appHeight"
12641264 replayBlocksDone := "INF Replay: Done module=consensus"
12651265 executedBlock := "INF indexed block "
@@ -1268,6 +1268,11 @@ func (l *validator) scanner(stdout io.Reader, p publisher) error {
12681268 addingNewModule := "INF adding a new module: "
12691269 migratingModule := "INF migrating module "
12701270
1271+ rServerStart , err := regexp .Compile (`^` + serverStart + `(Tendermint|CometBFT) in-process` )
1272+ if err != nil {
1273+ return err
1274+ }
1275+
12711276 rNewModule , err := regexp .Compile (`^` + addingNewModule + `(.+) (.+)$` )
12721277 if err != nil {
12731278 return err
@@ -1287,6 +1292,10 @@ scan:
12871292 if strings .Contains (line , upgradeNeeded ) {
12881293 evt .id = nodeEventUpgradeDetected
12891294 } else if strings .Contains (line , serverStart ) {
1295+ res := rServerStart .FindAllStringSubmatch (line , - 1 )
1296+ if len (res ) != 1 && len (res [0 ]) != 2 {
1297+ return fmt .Errorf ("line \" %s\" does not match regex \" %s\" " , line , rServerStart .String ())
1298+ }
12901299 evt .id = nodeEventStart
12911300 } else if strings .Contains (line , replayBlocksStart ) {
12921301 evt .id = nodeEventReplayBlocksStart
0 commit comments