提交 f866fbea 编写于 作者: T Tom Huybrechts

add node name to exception logs

上级 cfd817d2
......@@ -212,7 +212,7 @@ public final class TcpSlaveAgentListener extends Thread {
return;
}
String nodeName = in.readUTF();
final String nodeName = in.readUTF();
SlaveComputer computer = (SlaveComputer) Hudson.getInstance().getComputer(nodeName);
if(computer==null) {
error(out, "No such slave: "+nodeName);
......@@ -241,7 +241,7 @@ public final class TcpSlaveAgentListener extends Thread {
e.printStackTrace();
}
if(cause!=null)
LOGGER.log(Level.WARNING, "Connection #"+id+" terminated",cause);
LOGGER.log(Level.WARNING, "Connection #"+id+" for + " + nodeName + " terminated",cause);
try {
ConnectionHandler.this.s.close();
} catch (IOException e) {
......@@ -254,7 +254,7 @@ public final class TcpSlaveAgentListener extends Thread {
logw.println("Failed to establish the connection with the slave");
throw e;
} catch (IOException e) {
logw.println("Failed to establish the connection with the slave");
logw.println("Failed to establish the connection with the slave " + nodeName);
e.printStackTrace(logw);
throw e;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册