Skip to content

Commit 9ff3ad9

Browse files
committed
internal/crashmonitor: pass CrashOptions to SetCrashOutput
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 <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent ac8fed8 commit 9ff3ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/crashmonitor/crash_go123.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import (
1313
)
1414

1515
func init() {
16-
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f) }
16+
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f, debug.CrashOptions{}) }
1717
}

0 commit comments

Comments
 (0)