Skip to content

Commit

Permalink
Merge pull request #35 from ethpandaops/fix/log-ctx
Browse files Browse the repository at this point in the history
fix(agent): Use correct log context
  • Loading branch information
samcm authored Nov 22, 2024
2 parents 84c3b23 + 50283e5 commit 4a32b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 4a32b36

Please sign in to comment.