Browse Source

素材报表、异步报表部分日志关闭

hcst_sunzhen 5 năm trước cách đây
mục cha
commit
57dddb2a05

+ 4 - 4
module-report/src/main/java/cn/com/ctop/bytedance/service/impl/BytedanceReportServiceImpl.java

@@ -744,7 +744,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
         if(!Check.isNull(json)){
             Integer code = json.getInteger("code");
             if(code != 0){
-                log.info("返回信息错误,错误码为:" + code + ",头条accountId:" + accountId + ",message:"+ json.getString("message"));
+                log.error("返回信息错误,错误码为:" + code + ",头条accountId:" + accountId + ",message:"+ json.getString("message"));
                 return;
             }
             JSONObject dataJson = json.getJSONObject("data");
@@ -810,13 +810,13 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
 
                     try {
                         String jsonString = JSON.toJSONString(json);
-                        log.info("返回json为" + jsonString);
+                        //log.info("返回json为" + jsonString);
 
                         if(!Check.isNull(json)){
                             Integer code = json.getInteger("code");
                             if(code != 0){
                                 log.info("获取任务列表返回信息错误,错误码为:" + code + ",头条accountId:" + accountId + "taskId:" + task.getTaskId());
-                                return;
+                                continue;
                             }
 
                             JSONObject jsonData = json.getJSONObject("data");
@@ -1082,7 +1082,7 @@ public class BytedanceReportServiceImpl implements IBytedanceReportService {
                     //Long insertEndTime = System.currentTimeMillis();
                     //log.info("头条获取素材报表插入数据结束,执行耗时:{}秒", (insertEndTime - insertStartTime) / 1000);
                     if(currentPage >= totalPage){
-                        log.info("accountId:" + accountId + "数据同步完成,开始时间:" + startDate + ",结束时间:"+ endDate);
+                        //log.info("accountId:" + accountId + "数据同步完成,开始时间:" + startDate + ",结束时间:"+ endDate);
                         //returnCode = 1;
                         return 1;
                     }else{