Skip to content

Commit 377366d

Browse files
committed
commands: place root cause above stacktrace in logs
1 parent d57e97c commit 377366d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

commands/commands.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,7 @@ func logPanicToWriter(w io.Writer, loggedError error) {
350350
w.Write(ErrorBuffer.Bytes())
351351
fmt.Fprintln(w)
352352

353-
fmt.Fprintf(w, "%s\n", loggedError)
354-
for _, stackline := range errors.StackTrace(loggedError) {
355-
fmt.Fprintln(w, stackline)
356-
}
353+
fmt.Fprintf(w, "%+v\n", loggedError)
357354

358355
for key, val := range errors.Context(err) {
359356
fmt.Fprintf(w, "%s=%v\n", key, val)

0 commit comments

Comments
 (0)