Skip to content

Commit

Permalink
Ensure logshipper is available to anywhere pulling logger out of ctx (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Oct 30, 2023
1 parent a896d36 commit e0e1d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func runLauncher(ctx context.Context, cancel func(), opts *launcher.Options) err
logShipper = logshipper.New(k, logger)
logger = teelogger.New(logger, logShipper)
logger = log.With(logger, "caller", log.Caller(5))
ctx = ctxlog.NewContext(ctx, logger) // Set the logger back in the ctx
}

// construct the appropriate http client based on security settings
Expand Down

0 comments on commit e0e1d1a

Please sign in to comment.