Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Add the logger into context instead of adding the runner as context v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
almirmcunhajr committed Jul 2, 2024
1 parent 6a6a6ea commit 6cafaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/internal/controller/actionsrunner/wire/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ func (w *Wire) Listen() {
}

ctx := context.Background()
ctx = context.WithValue(ctx, runnerContextKey, w.GetRunnerName())
logger := log.FromContext(ctx, "runner", w.GetRunnerName())
ctx = log.IntoContext(ctx, logger)

w.loopClose = make(chan struct{})
logger.Info("Wire opened")
Expand Down

0 comments on commit 6cafaf9

Please sign in to comment.