From b61488a8ba3b018eeb78cb1a7e473602a5b0a83c Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 21 Oct 2020 14:57:25 -0400 Subject: [PATCH] write traceback to log crash log --- internal/logging/panic.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/logging/panic.go b/internal/logging/panic.go index a7205ce7d9..6a2c7869e6 100644 --- a/internal/logging/panic.go +++ b/internal/logging/panic.go @@ -60,6 +60,9 @@ func PanicHandler(logF *os.File) panicwrap.HandlerFunc { return } + // add the trace back to the log + f.WriteString("\n" + m) + // Tell the user a crash occurred in some helpful way that // they'll hopefully notice. fmt.Printf("\n\n")