This commit is contained in:
withchao 2023-05-09 15:15:17 +08:00
parent 6f3b4a9f02
commit 2073c4bf46

View File

@ -96,6 +96,7 @@ func RpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
log.ZInfo(ctx, "rpc server resp", "funcName", funcName, "resp", rpcString(resp)) log.ZInfo(ctx, "rpc server resp", "funcName", funcName, "resp", rpcString(resp))
return resp, nil return resp, nil
} }
log.ZError(ctx, "rpc server resp", err, "funcName", funcName)
unwrap := errs.Unwrap(err) unwrap := errs.Unwrap(err)
codeErr := specialerror.ErrCode(unwrap) codeErr := specialerror.ErrCode(unwrap)
if codeErr == nil { if codeErr == nil {