Authored by qinchao

打印日志

@@ -44,6 +44,7 @@ public class NodePm2Task { @@ -44,6 +44,7 @@ public class NodePm2Task {
44 44
45 try { 45 try {
46 String projects = httpRestClientService.doGet(URL + "getProjects", null); 46 String projects = httpRestClientService.doGet(URL + "getProjects", null);
  47 + logger.info("cron_task_node_mem projects "+projects);
47 if (projects != null) { 48 if (projects != null) {
48 List<Project> projectList = JSONArray.parseArray(projects, Project.class); 49 List<Project> projectList = JSONArray.parseArray(projects, Project.class);
49 List<PythonProject> pythonProjects = new ArrayList<>(projectList.size()); 50 List<PythonProject> pythonProjects = new ArrayList<>(projectList.size());
@@ -66,6 +67,8 @@ public class NodePm2Task { @@ -66,6 +67,8 @@ public class NodePm2Task {
66 } 67 }
67 ipSet.add(ip); 68 ipSet.add(ip);
68 69
  70 + logger.info("cron_task_node_mem for ip {} ,name {} ",ip,pythonEnv.getName());
  71 +
69 String result = httpRestClientService.doGet("http://" + ip + ":9615", null); 72 String result = httpRestClientService.doGet("http://" + ip + ":9615", null);
70 JSONObject resultJSONObject = JSON.parseObject(result); 73 JSONObject resultJSONObject = JSON.parseObject(result);
71 JSONObject monit = resultJSONObject.getJSONObject("monit"); 74 JSONObject monit = resultJSONObject.getJSONObject("monit");