mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
改善
This commit is contained in:
parent
87791eac22
commit
f0a040f4c6
@ -31,7 +31,7 @@ type StorageModel struct {
|
||||
func init() {
|
||||
go func() {
|
||||
if conf.IsStoreNameAutoAddDate() && conf.GetSaveDays() > 0 {
|
||||
removeStorageByDays()
|
||||
// removeStorageByDays() // 注释掉,没必要启动时就清理
|
||||
ticker := time.NewTicker(time.Hour) // 一小时检查一次是否有待删除的日志仓
|
||||
for {
|
||||
<-ticker.C
|
||||
|
||||
Loading…
Reference in New Issue
Block a user