Skip to content

Commit

Permalink
Do not echo debug logs to stderr on Windows (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Aug 9, 2024
1 parent ec0bdc5 commit 5c09dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func runLauncher(ctx context.Context, cancel func(), multiSlogger, systemMultiSl
go runOsqueryVersionCheck(ctx, slogger, k.LatestOsquerydPath(ctx))
go timemachine.AddExclusions(ctx, k)

if k.Debug() {
if k.Debug() && runtime.GOOS != "windows" {
// If we're in debug mode, then we assume we want to echo _all_ logs to stderr.
k.AddSlogHandler(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
AddSource: true,
Expand Down

0 comments on commit 5c09dea

Please sign in to comment.