user update

This commit is contained in:
Gordon 2023-03-16 12:42:34 +08:00
parent 9a0f9c2270
commit 6ce1c6c048

View File

@ -29,7 +29,8 @@ func rpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
var operationID string var operationID string
defer func() { defer func() {
if r := recover(); r != nil { if r := recover(); r != nil {
log.ZError(ctx, "rpc panic", nil, "FullMethod", info.FullMethod, "type:", fmt.Sprintf("%T", r), "panic:", r, string(debug.Stack())) log.ZError(ctx, "rpc panic", nil, "FullMethod", info.FullMethod, "type:", fmt.Sprintf("%T", r), "panic:", r, "stack", string(debug.Stack()))
err = errs.ErrInternalServer
} }
}() }()
funcName := info.FullMethod funcName := info.FullMethod