提交 713b3743 编写于 作者: K kohsuke

StreamTaskListener(Writer) uses WriterOutputStream and unnecessarily make the pipeline longer.

This also caused the log blockage for the Selenium plugin

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18199 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6bb84002
......@@ -42,7 +42,7 @@ import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
......@@ -271,8 +271,8 @@ public class SlaveComputer extends Computer {
if(this.channel!=null)
throw new IllegalStateException("Already connected");
PrintWriter log = new PrintWriter(launchLog,true);
final TaskListener taskListener = new StreamTaskListener(log);
final TaskListener taskListener = new StreamTaskListener(launchLog);
PrintStream log = taskListener.getLogger();
Channel channel = new Channel(nodeName,threadPoolForRemoting, Channel.Mode.NEGOTIATE,
in,out, launchLog);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册