Skip to content

Commit

Permalink
change log.Crit to log.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jul 17, 2024
1 parent f30cc33 commit 18cc8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollup/rollup_sync_service/rollup_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ func (s *RollupSyncService) parseAndUpdateRollupEventLogs(logs []types.Log, endB
}

if err := batchWriter.Write(); err != nil {
log.Crit("Failed to write finalized batch meta to database", "err", err)
log.Error("fatal: failed to batch write finalized batch meta to database", "startBatchIndex", startBatchIndex, "endBatchIndex", batchIndex,
"batchCount", batchIndex-startBatchIndex+1, "highestFinalizedBlockNumber", highestFinalizedBlockNumber, "err", err)
return fmt.Errorf("failed to batch write finalized batch meta to database: %w", err)
}
rawdb.WriteFinalizedL2BlockNumber(s.db, highestFinalizedBlockNumber)
rawdb.WriteLastFinalizedBatchIndex(s.db, batchIndex)
Expand Down

0 comments on commit 18cc8d7

Please sign in to comment.