Skip to content

Commit

Permalink
fix: added log on when block is read
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Feb 3, 2024
1 parent 75bde77 commit d8a5c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ func (o *OverflowState) StreamTransactions(ctx context.Context, poll time.Durati
} else {
block = latestKnownBlock
}

logg.Debug("processing block", zap.Any("block", block.Height), zap.Any("latestBlock", latestKnownBlock.Height))
readDur := time.Since(start)
logg.Info("block read", zap.Any("block", block.Height), zap.Any("latestBlock", latestKnownBlock.Height), zap.Any("readDur", readDur.Seconds()))
tx, systemChunkEvents, err := o.GetTransactions(ctx, block.ID, logg)
logg.Debug("fetched transactions", zap.Int("tx", len(tx)))
if err != nil {
Expand Down

0 comments on commit d8a5c56

Please sign in to comment.