Browse Source

Pull request #1757: REPORT-33858 日志死循环的问题

Merge in DESIGN/design from ~RINOUX/design:release/10.0 to release/10.0

* commit 'a458266ea108d4d34b33c4108acf947f2407c982':
  REPORT-33858 日志死循环的问题
feature/big-screen
rinoux 4 years ago
parent
commit
9c4e3eb0a8
  1. 7
      designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java

7
designer-realize/src/main/java/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java

@ -147,8 +147,11 @@ public class ErrorInfoLogAppender extends AppenderSkeleton {
} }
}; };
try { try {
file.readStream(new ByteArrayInputStream(WorkContext.getWorkResource().readFully(StableUtils.pathJoin(ProjectConstants.REPORTLETS_NAME, bookPath)))); //如果bookPath是null,ResourceIOUtils会因为无法读取文件夹的流输出error日志,输出日志会再次走到这里,引起死循环
return file.getTemplateID(); if (StringUtils.isNotBlank(bookPath)) {
file.readStream(new ByteArrayInputStream(WorkContext.getWorkResource().readFully(StableUtils.pathJoin(ProjectConstants.REPORTLETS_NAME, bookPath))));
return file.getTemplateID();
}
} catch (Exception ignore) { } catch (Exception ignore) {
} }

Loading…
Cancel
Save