Commit 67320df9 authored by Ethen Pociask's avatar Ethen Pociask

[epociask/debug] Output timestamp and l1 span range

parent 49762e7f
......@@ -201,7 +201,8 @@ func (db *blocksDB) LatestObservedEpoch(fromL1Height *big.Int, maxL1Range uint64
result := db.gorm.Where(l1QueryFilter).Order("timestamp DESC").Take(&l1Header)
if result.Error != nil {
if errors.Is(result.Error, gorm.ErrRecordNotFound) {
log.Warn("Could not fetch latest L1 block header in bridge processor")
log.Warn("Could not fetch latest L1 block header in bridge processor", "from_timestamp",
fromTimestamp, "max_l1_range", maxL1Range)
return nil, nil
}
return nil, result.Error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment