From 55b1769b4e0f55fa8486dd5b49331cae18774d52 Mon Sep 17 00:00:00 2001 From: Pinkle-pash Date: Wed, 15 May 2024 15:34:08 -0400 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI --- internal/crashmonitor/crash_go123.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/crashmonitor/crash_go123.go b/internal/crashmonitor/crash_go123.go index a2706d3..8f00c48 100644 --- a/internal/crashmonitor/crash_go123.go +++ b/internal/crashmonitor/crash_go123.go @@ -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{}) } }