Skip to content

Commit

Permalink
internal/crashmonitor: pass CrashOptions to SetCrashOutput
Browse files Browse the repository at this point in the history
Now that CL 585557 has landed in runtime/debug,
we can supply the options.

But we cannot eta-reduce the func literal because
we don't want setCrashOutput's type to mention
debug.CrashOptions, which is a go1.23-only type.

Updates golang/go#67182

Change-Id: I2c3b5cbc4594b6bcd5b5ff43c933d0609cc1c309
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/585478
Reviewed-by: Michael Matloob <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
adonovan committed May 15, 2024
1 parent ac8fed8 commit 9ff3ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/crashmonitor/crash_go123.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ import (
)

func init() {
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f) }
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f, debug.CrashOptions{}) }
}

0 comments on commit 9ff3ad9

Please sign in to comment.