日志文件删除机制

This commit is contained in:
udf_admin@163.com
2018-01-20 01:07:07 +08:00
parent 391a85007f
commit 9a68c5963a
@@ -38,7 +38,7 @@ public class CleanLogFile {
if (ArrayUtils.isNotEmpty(files)) {
Arrays.stream(files).filter(f -> !logFile.equals(f.getAbsolutePath())).forEach(f -> {
try {
log.info("cleanLog : {}", f.getAbsolutePath());
log.info("cleanLog delete : {}", f.getAbsolutePath());
Files.delete(f.toPath());
} catch (IOException e) {
log.warn("msg:", e);