From db1230e4a28f3ef2cccd585d2b3e06afab3875ab Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Tue, 13 Feb 2024 16:46:34 -0500 Subject: [PATCH] Use ctx in slogger.Log when available --- cmd/launcher/control.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/launcher/control.go b/cmd/launcher/control.go index 6b2742805..ee0dff5d4 100644 --- a/cmd/launcher/control.go +++ b/cmd/launcher/control.go @@ -12,7 +12,7 @@ import ( ) func createHTTPClient(ctx context.Context, k types.Knapsack) (*control.HTTPClient, error) { - k.Slogger().Log(context.TODO(), slog.LevelDebug, + k.Slogger().Log(ctx, slog.LevelDebug, "creating control http client", ) @@ -35,7 +35,7 @@ func createControlService(ctx context.Context, store types.GetterSetter, k types ctx, span := traces.StartSpan(ctx) defer span.End() - k.Slogger().Log(context.TODO(), slog.LevelDebug, + k.Slogger().Log(ctx, slog.LevelDebug, "creating control service", )