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());
@@ -65,6 +66,8 @@ public class NodePm2Task { @@ -65,6 +66,8 @@ public class NodePm2Task {
65 continue; 66 continue;
66 } 67 }
67 ipSet.add(ip); 68 ipSet.add(ip);
  69 +
  70 + logger.info("cron_task_node_mem for ip {} ,name {} ",ip,pythonEnv.getName());
68 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);