添加过期移除

This commit is contained in:
Yun
2024-01-23 13:38:53 +08:00
parent 60ad89f164
commit 1b61ac46e4
+1 -1
View File
@@ -28,7 +28,7 @@ func (l *Logger) delete() {
} }
} }
ext := filepath.Ext(path) ext := filepath.Ext(path)
if ext == ".log" { if ext != ".log" {
return nil return nil
} }
// 删除文件 // 删除文件