write traceback to log crash log
This commit is contained in:
parent
a2dee91eba
commit
b61488a8ba
|
@ -60,6 +60,9 @@ func PanicHandler(logF *os.File) panicwrap.HandlerFunc {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add the trace back to the log
|
||||||
|
f.WriteString("\n" + m)
|
||||||
|
|
||||||
// Tell the user a crash occurred in some helpful way that
|
// Tell the user a crash occurred in some helpful way that
|
||||||
// they'll hopefully notice.
|
// they'll hopefully notice.
|
||||||
fmt.Printf("\n\n")
|
fmt.Printf("\n\n")
|
||||||
|
|
Loading…
Reference in New Issue