Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure logshipper is available to anywhere pulling logger out of ctx #1429

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading