This commit is contained in:
Kevin Wan
2021-08-15 15:33:45 +08:00
committed by GitHub
parent fc04ad7854
commit a21ff71373
3 changed files with 11 additions and 3 deletions

View File

@@ -39,6 +39,6 @@ func handleCrash(handler func(interface{})) {
}
func toPanicError(r interface{}) error {
logx.Errorf("%+v %s", r, debug.Stack())
logx.Errorf("%+v\n\n%s", r, debug.Stack())
return status.Errorf(codes.Internal, "panic: %v", r)
}