i18n: logs in aria2/auth/cache/cluster/serializer

This commit is contained in:
HFO4
2022-09-29 17:40:56 +08:00
parent 7366ff534e
commit 9bb4a5263c
11 changed files with 37 additions and 34 deletions

2
pkg/cache/memo.go vendored
View File

@@ -53,7 +53,7 @@ func (store *MemoStore) GarbageCollect() {
store.Store.Range(func(key, value interface{}) bool {
if item, ok := value.(itemWithTTL); ok {
if item.expires > 0 && item.expires < time.Now().Unix() {
util.Log().Debug("回收垃圾[%s]", key.(string))
util.Log().Debug("Cache %q is garbage collected.", key.(string))
store.Store.Delete(key)
}
}