This commit is contained in:
Gordon 2023-03-13 11:42:27 +08:00
parent bc2ae99ba7
commit 9645d16b2d

View File

@ -45,6 +45,7 @@ func rpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
resp, err = handler(ctx, req)
if err != nil {
tracelog.SetCtxInfo(ctx, funcName, err)
log.Info("", "rpc come here,in rpc call,err:", err.Error())
return nil, rpcErrorToCode(err).Err()
}
tracelog.SetCtxInfo(ctx, funcName, nil, "rpcResp", rpcString(resp))