Skip to content

Commit

Permalink
bugfix: Print full stack on panic
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Dec 22, 2023
1 parent 5a56551 commit 4e467c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/log/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Warnf(format string, args ...interface{}) {
}

func Panicf(format string, args ...interface{}) {
frames := stack.Trace().TrimRuntime()
frames := stack.Trace()
errMsg := fmt.Sprintf(format, args...)
for _, frame := range frames {
frameStr := fmt.Sprintf("%+v", frame)
Expand Down

0 comments on commit 4e467c2

Please sign in to comment.