Browse Source

去除多余日志

shaohongbo 3 years ago
parent
commit
ffb8bc437b

+ 7 - 1
src/main/java/com/persagy/apm/diagnose/indicatorrecord/service/impl/MonitorIndicatorRecordServiceImpl.java

@@ -485,7 +485,13 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
             configItemSendTimeDTO.setUpdateTime(new Date());
             updateRedisConfigItemSendTimeDTO(projectDTO.getProjectId(), objIdAndAlarmItemCode, configItemSendTimeDTO);
             // 发数
-            rabbitConfig.sendMsg(sendArray);
+
+            try {
+                rabbitConfig.sendMsg(sendArray);
+            } catch (Exception e) {
+                e.printStackTrace();
+                log.error("指标发送报表服务报错:" + projectDTO.getProjectId() + ";" + CommonUtils.getExceptionStackTrace(e));
+            }
             log.error("指标发送报表服务数据:" + projectDTO.getProjectId() + ";" + sendArray);
         }
     }