From fbe0672fc4eeab5b07360f91e48bf138b0e6e631 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Tue, 13 Dec 2022 12:46:51 -0600 Subject: [PATCH] state: Improve replay state logs metadata (#11763) Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> --- beacon-chain/state/stategen/replay.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon-chain/state/stategen/replay.go b/beacon-chain/state/stategen/replay.go index d53269cf8..de975e8a5 100644 --- a/beacon-chain/state/stategen/replay.go +++ b/beacon-chain/state/stategen/replay.go @@ -36,11 +36,12 @@ func (_ *State) replayBlocks( var err error start := time.Now() - log.WithFields(logrus.Fields{ + log = log.WithFields(logrus.Fields{ "startSlot": state.Slot(), "endSlot": targetSlot, "diff": targetSlot - state.Slot(), - }).Debug("Replaying state") + }) + log.Debug("Replaying state") // The input block list is sorted in decreasing slots order. if len(signed) > 0 { for i := len(signed) - 1; i >= 0; i-- {