提交 df613f16 编写于 作者: 许雪里's avatar 许雪里

更新RM

上级 e3cce634
...@@ -115,23 +115,21 @@ public class XxlJobFileAppender { ...@@ -115,23 +115,21 @@ public class XxlJobFileAppender {
appendLog += "\r\n"; appendLog += "\r\n";
// append file content // append file content
FileOutputStream fos = null;
try { try {
FileOutputStream fos = null; fos = new FileOutputStream(logFile, true);
try { fos.write(appendLog.getBytes("utf-8"));
fos = new FileOutputStream(logFile, true); fos.flush();
fos.write(appendLog.getBytes("utf-8"));
fos.flush();
} finally {
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
}
}
} catch (Exception e) { } catch (Exception e) {
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
} finally {
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册