mirror of
https://gitee.com/wangkang/udf.git
synced 2026-11-22 00:33:42 +00:00
日志文件删除机制
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user