From 50283e57e6a7e95c743dbfee984489fe03294f6d Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Tue, 24 Sep 2024 17:50:42 +1000 Subject: [PATCH] fix(agent): Use correct log context --- pkg/agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 0d7882e..bd0dc61 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -125,7 +125,7 @@ func (s *agent) Start(ctx context.Context) error { return nil } - logCtx := logrus.WithFields(logrus.Fields{ + logCtx := s.log.WithFields(logrus.Fields{ "event_slot": event.Slot, "event_root": fmt.Sprintf("%#x", event.Block), "purpose": "execution_block_trace", @@ -199,7 +199,7 @@ func (s *agent) Start(ctx context.Context) error { }) s.node.Beacon().Node().OnChainReOrg(ctx, func(ctx context.Context, chainReorg *eth2v1.ChainReorgEvent) error { - logCtx := logrus.WithFields( + logCtx := s.log.WithFields( logrus.Fields{ "event_old_head_block": rootAsString(chainReorg.OldHeadBlock), "event_new_head_block": rootAsString(chainReorg.NewHeadBlock),