From 7abea66389d9ab2bc416cd65b90125b5865dbd21 Mon Sep 17 00:00:00 2001 From: Dmytro Haidashenko Date: Wed, 13 Mar 2024 18:45:45 +0100 Subject: [PATCH] switch from warn to debug level when we failed to makr block as finalized --- common/headtracker/head_tracker.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/headtracker/head_tracker.go b/common/headtracker/head_tracker.go index 7d196947af3..eb9d72f123c 100644 --- a/common/headtracker/head_tracker.go +++ b/common/headtracker/head_tracker.go @@ -388,13 +388,16 @@ func (ht *HeadTracker[HTH, S, ID, BLOCK_HASH]) backfill(ctx context.Context, hea return fmt.Errorf(errMsg) } + l = l.With("latest_finalized_block_hash", latestFinalizedHead.BlockHash(), + "latest_finalized_block_number", latestFinalizedHead.BlockNumber()) + err = ht.headSaver.MarkFinalized(ctx, latestFinalizedHead) if err != nil { - return fmt.Errorf("failed to mark head as finalized: %w", err) + l.Debugw("failed to mark block as finalized", "err", err) + return nil } - l.Debugw("marked block as finalized", "block_hash", latestFinalizedHead.BlockHash(), - "block_number", latestFinalizedHead.BlockNumber()) + l.Debugw("marked block as finalized") return }