Skip to content

Commit ac8fed8

Browse files
adonovangopherbot
authored andcommitted
internal/crashmonitor: prepare for SetCrashOutput signature change
The function is about to get a second parameter. This shim will be removed later this week. Updates golang/go#67182 Change-Id: I166adda831979b713d429504b57510506bfdff11 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/585378 Reviewed-by: Michael Matloob <matloob@golang.org> Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 74e3e9f commit ac8fed8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/crashmonitor/crash_go123.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
package crashmonitor
99

10-
import "runtime/debug"
10+
import (
11+
"os"
12+
"runtime/debug"
13+
)
1114

1215
func init() {
13-
setCrashOutput = debug.SetCrashOutput
16+
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f) }
1417
}

0 commit comments

Comments
 (0)