diff --git a/jvm/core/src/main/java/org/fedai/eggroll/core/containers/container/ProcessContainer.java b/jvm/core/src/main/java/org/fedai/eggroll/core/containers/container/ProcessContainer.java index 7ebb9565d..8020aacd9 100644 --- a/jvm/core/src/main/java/org/fedai/eggroll/core/containers/container/ProcessContainer.java +++ b/jvm/core/src/main/java/org/fedai/eggroll/core/containers/container/ProcessContainer.java @@ -59,8 +59,8 @@ public boolean start() { } processBuilder.redirectOutput(logFile); } - if (stdOutFile != null) { - File logFile = cwd.resolve(stdOutFile).toFile(); + if (stdErrFile != null) { + File logFile = cwd.resolve(stdErrFile).toFile(); logFile.getParentFile().mkdirs(); if (!logFile.exists()) { logFile.createNewFile();