Browse Source

fix: 修复文件写入错误

tags/24080901
刘帅 1 year ago
parent
commit
2c46de4b90
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java View File

@@ -100,7 +100,7 @@ public class CommonLogTask {
FileUtil.touch(fileName);
}
//写入通用规则
FileWriter writer = new FileWriter(LOG_RECORD_ADDRESS + LOG_FILE);
FileWriter writer = new FileWriter(fileName);
writer.append(JSONUtil.toJsonStr(commonLog));
if (commonLog.getActionType() == 3){
CommonLog commonLogEnd = new CommonLog();


Loading…
Cancel
Save