优化日志
This commit is contained in:
parent
a6993fa15f
commit
656fbf78fa
@ -4,4 +4,5 @@ const (
|
||||
Go_gc_percent = 200
|
||||
Go_gc_memory_limit = 1024 << 20
|
||||
Go_game_version = "1.0.3" // 游戏版本号,格式为 "主版本号.次版本号.修订号",每次发布新版本时需要更新
|
||||
Go_log_delete_days = 3 // 日志删除天数,超过这个天数的日志文件将被删除
|
||||
)
|
||||
|
||||
@ -602,7 +602,7 @@ func (ad *GameLogic) CreateDailyLogFile() {
|
||||
fmt.Println(err)
|
||||
}
|
||||
log.Debug("CreateDailyLogFile")
|
||||
ad.RemoveOldLogs(15)
|
||||
ad.RemoveOldLogs(MergeConst.Go_log_delete_days)
|
||||
}
|
||||
|
||||
func (ad *GameLogic) RemoveOldLogs(days int) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user