Skip to content

Commit 8a58224

Browse files
committed
Add block numbers to poll logs
1 parent c5f010d commit 8a58224

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sentinel/chain_poller_service/chain_poller_service.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@ func (eps *ChainPollerService) pollCycle() {
196196
return
197197
}
198198

199-
eps.config.Logger.Debug().Int("Number of fetched logs", len(logs)).Msg(("Fetched logs from blockchain"))
199+
eps.config.Logger.Debug().
200+
Int("Number of fetched logs", len(logs)).
201+
Uint64("FromBlock", fromBlock.Uint64()).
202+
Uint64("ToBlock", toBlock).
203+
Uint64("Number of blocks", toBlock-fromBlock.Uint64()).
204+
Msg(("Fetched logs from blockchain"))
200205

201206
// Broadcast each log to subscribers
202207
for _, log := range logs {

0 commit comments

Comments
 (0)