From 3b259aed05c6def4fc66c0863382cb39885269ca Mon Sep 17 00:00:00 2001 From: billettc Date: Wed, 31 Jan 2024 08:57:01 -0500 Subject: [PATCH] better logging --- block/fetcher/rpc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/fetcher/rpc.go b/block/fetcher/rpc.go index e1aa5ebb..41ddeb14 100644 --- a/block/fetcher/rpc.go +++ b/block/fetcher/rpc.go @@ -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)