From d8a5c56a4dfa6b8130438855d615b34b327c4e3a Mon Sep 17 00:00:00 2001 From: Bjarte Stien Karlsen Date: Sat, 3 Feb 2024 11:17:07 +0100 Subject: [PATCH] fix: added log on when block is read --- transaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transaction.go b/transaction.go index bfc83b2..651b130 100644 --- a/transaction.go +++ b/transaction.go @@ -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 {