소스 검색

添加 每日请求 日志

wcc 1 년 전
부모
커밋
2c4f26e44d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      website_columns/main.go

+ 1 - 0
website_columns/main.go

@@ -161,6 +161,7 @@ func getHot() {
 	file := gtime.Now().AddDate(0, 0, -1).Format("Y-m-d")
 	res := gclient.New().GetContent(context.Background(), "http://172.17.145.164:18880/jyartvisit/"+file+".res")
 	arrs := strings.Split(res, "\n")
+	log.Info("getHot", zap.Int("res", len(arrs)))
 	for _, va := range arrs {
 		vs := strings.Split(va, " ")
 		if len(vs) == 2 {