Authored by zhengyouwei

add log

... ... @@ -33,7 +33,7 @@ public class QcloudBandwidthTask {
SnsMobileConfig snsMobileConfig;
@Scheduled(cron = "${cron.task.bandwidth}")
public void clientDnsCountMonitor() {
public void qcloudBandwidthTask() {
try {
TreeMap<String, Object> config = new TreeMap<>();
... ... @@ -95,7 +95,7 @@ public class QcloudBandwidthTask {
alarmMsgService.sendSms("bandwidth", "专线带宽使用过多,请查看" , snsMobileConfig.getBaseMobile());
}
} catch (Exception e) {
e.printStackTrace();
logger.error("qcloudBandwidthTask !",e);
}
}
... ...
... ... @@ -61,7 +61,7 @@ public class NodePm2Task {
List<PythonEnv> pythonEnvs = pythonProject.getEnvs();
for (PythonEnv pythonEnv : pythonEnvs) {
for (String ip : pythonEnv.getHost_ips()) {
if (ipSet.contains(ip)) {
if (ipSet.contains(ip) || !(ip.startsWith("10") || ip.startsWith("172"))) {
continue;
}
ipSet.add(ip);
... ...