Commit 1c19720579e5c0c627d6f9ae5a90108d593b61a8

Authored by Liu Haoyu
1 parent 20fe6d52

修改日志输出等级;

src/main/java/com/objecteye/service/impl/OccupationOfBasicResourcesServiceImpl.java
... ... @@ -69,7 +69,7 @@ public class OccupationOfBasicResourcesServiceImpl implements IOccupationOfBasic
69 69 String owner = (String) requestMap.getOrDefault("user", "-1");
70 70 if (logPath == null || "".equals(logPath)) {
71 71 logPath = jarPath.substring(0, jarPath.lastIndexOf("/")) + jarPath.substring(jarPath.lastIndexOf("/")).replaceAll("jar", "log");
72   - log.info("OccupationOfBasicResourcesServiceImpl|deployJarFile|logPath: {}", logPath);
  72 + log.debug("OccupationOfBasicResourcesServiceImpl|deployJarFile|logPath: {}", logPath);
73 73 }
74 74  
75 75 JSONObject resultObj = new JSONObject();
... ... @@ -187,11 +187,11 @@ public class OccupationOfBasicResourcesServiceImpl implements IOccupationOfBasic
187 187 String[] cmdList = {"/bin/sh", "-c", cmd};
188 188 process = run.exec(cmdList);
189 189 }
190   - log.info("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|cmd: {}", cmd);
  190 + log.debug("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|cmd: {}", cmd);
191 191 String line;
192 192 BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
193 193 while ((line = stdoutReader.readLine()) != null) {
194   - log.info("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|line: {}", line);
  194 + log.debug("OccupationOfBasicResourcesServiceImpl|executeLinuxCmd|line: {}", line);
195 195 if (line.contains("command not found") && line.contains("-bash")) {
196 196 log.error(line);
197 197 return;
... ...