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() {
|
func init() {
|
||||||
go func() {
|
go func() {
|
||||||
if conf.IsStoreNameAutoAddDate() && conf.GetSaveDays() > 0 {
|
if conf.IsStoreNameAutoAddDate() && conf.GetSaveDays() > 0 {
|
||||||
removeStorageByDays()
|
// removeStorageByDays() // 注释掉,没必要启动时就清理
|
||||||
ticker := time.NewTicker(time.Hour) // 一小时检查一次是否有待删除的日志仓
|
ticker := time.NewTicker(time.Hour) // 一小时检查一次是否有待删除的日志仓
|
||||||
for {
|
for {
|
||||||
<-ticker.C
|
<-ticker.C
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user