Skip to content

Commit

Permalink
Use ctx in slogger.Log when available (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Feb 13, 2024
1 parent f8d0bea commit 6aad715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/launcher/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand All @@ -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",
)

Expand Down

0 comments on commit 6aad715

Please sign in to comment.