From e0e1d1a2f10118df92caf0c42c6182840d868ac7 Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Mon, 30 Oct 2023 11:58:24 -0400 Subject: [PATCH] Ensure logshipper is available to anywhere pulling logger out of ctx (#1429) --- cmd/launcher/launcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/launcher/launcher.go b/cmd/launcher/launcher.go index 13cacb3ec..23b2fa277 100644 --- a/cmd/launcher/launcher.go +++ b/cmd/launcher/launcher.go @@ -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