diff --git a/pkg/common/mw/rpc_server_interceptor.go b/pkg/common/mw/rpc_server_interceptor.go index fd3ec1129..09645d08e 100644 --- a/pkg/common/mw/rpc_server_interceptor.go +++ b/pkg/common/mw/rpc_server_interceptor.go @@ -29,7 +29,8 @@ func rpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary var operationID string defer func() { if r := recover(); r != nil { - log.ZError(ctx, "rpc panic", nil, "FullMethod", info.FullMethod, "type:", fmt.Sprintf("%T", r), "panic:", r, "stack", string(debug.Stack())) + log.ZError(ctx, "rpc panic", nil, "FullMethod", info.FullMethod, "type:", fmt.Sprintf("%T", r), "panic:", r) + fmt.Println("stack info:", string(debug.Stack())) err = errs.ErrInternalServer } }()