重构: App拆分10域文件+并发安全+结构化日志+依赖升级
This commit is contained in:
@@ -3,6 +3,7 @@ package storage
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
@@ -94,7 +95,7 @@ func CleanupExpiredCache() {
|
||||
}
|
||||
|
||||
if len(expired) > 0 {
|
||||
fmt.Printf("[下载缓存] 清理 %d 条过期记录\n", len(expired))
|
||||
slog.Info("清理过期下载缓存", "count", len(expired))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user