Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jan 31, 2024
1 parent 9eb03e4 commit 3b259ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/fetcher/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func (f *RPCFetcher) Fetch(ctx context.Context, requestedSlot uint64) (out *pbbs
}
}

f.logger.Info("fetching block", zap.Uint64("block_num", requestedSlot), zap.Uint64("latest_finalized_slot", f.latestFinalizedSlot), zap.Uint64("latest_confirmed_slot", f.latestConfirmedSlot))

blockResult, skip, err := f.fetch(ctx, requestedSlot)
if err != nil {
return nil, false, fmt.Errorf("fetching block %d: %w", requestedSlot, err)
Expand Down

0 comments on commit 3b259ae

Please sign in to comment.