فهرست منبع

fix:日志记录

wangshan 3 سال پیش
والد
کامیت
98e66e5ac9
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      jyBXBuyer/rpc/internal/logic/buyerlistlogic.go
  2. 2 2
      jyBXBuyer/rpc/model/buyerListBYEs.go

+ 1 - 1
jyBXBuyer/rpc/internal/logic/buyerlistlogic.go

@@ -52,7 +52,7 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
 		}
 	} else {
 		query = model.BuyerListQuery(in)
-		//logx.Info("query:", query)
+		logx.Info("query:", query)
 		resp = model.GetBuyerList(query, in, false)
 	}
 	return &bxbuyer.BuyerListResp{

+ 2 - 2
jyBXBuyer/rpc/model/buyerListBYEs.go

@@ -171,7 +171,7 @@ func GetBuyerList(qstr string, in *bxbuyer.BuyerListReq, isCache bool) (resp *bx
 		}
 	}
 	resp.Data.Count = int64(len(resp.Data.List))
-	log.Println("=---count---===", resp.Data.Count)
+	logx.Info("=---count---===", resp.Data.Count)
 	if len(resp.Data.List) > 0 {
 		var wg sync.WaitGroup
 		//省份和城市 是否查询已关注信息 是否查询已领取信息
@@ -218,7 +218,7 @@ func GetBuyerList(qstr string, in *bxbuyer.BuyerListReq, isCache bool) (resp *bx
 		}
 		wg.Wait()
 	}
-	log.Println("耗时;", time.Since(t1).Seconds(), time.Since(t1).Microseconds())
+	logx.Info("耗时;", time.Since(t1).Seconds(), time.Since(t1).Microseconds())
 	return
 }