提交 e77f79e8 编写于 作者: N Nicolas De Loof

log error creating slave log directory

上级 9cca9e05
......@@ -211,7 +211,9 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
*/
public File getLogFile() {
File dir = new File(Jenkins.getInstance().getRootDir(),"logs/slaves/"+nodeName);
dir.mkdirs();
if (!dir.exists() && !dir.mkdirs()) {
LOGGER.severe("Failed to create slave log directory " + dir.getAbsolutePath());
}
return new File(dir,"slave.log");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册