Commit 6d59c6e9 by huangfusuper

Merge remote-tracking branch 'origin/developer' into developer

parents 1a64fcb8 a606b7a5
...@@ -107,8 +107,8 @@ public class MythJobProcess implements Callable<String>{ ...@@ -107,8 +107,8 @@ public class MythJobProcess implements Callable<String>{
log.info("进程的id " + this.processId); log.info("进程的id " + this.processId);
} }
outputGobbler = new LogGobbler(new InputStreamReader(this.process.getInputStream(), "GB2312"), Boolean.FALSE, 30); outputGobbler = new LogGobbler(new InputStreamReader(this.process.getInputStream(), "utf-8"), Boolean.FALSE, 30);
errorGobbler = new LogGobbler(new InputStreamReader(this.process.getErrorStream(), "GB2312"), Boolean.TRUE, 30); errorGobbler = new LogGobbler(new InputStreamReader(this.process.getErrorStream(), "utf-8"), Boolean.TRUE, 30);
//开始获取进程的运行日志 //开始获取进程的运行日志
outputGobbler.start(); outputGobbler.start();
errorGobbler.start(); errorGobbler.start();
......
...@@ -62,8 +62,7 @@ public class LogGobbler extends Thread { ...@@ -62,8 +62,7 @@ public class LogGobbler extends Thread {
} }
} }
public String getRecentLog() throws UnsupportedEncodingException { public String getRecentLog() {
return buffer.toString(); return buffer.toString();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment