1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-06-19 14:05:03 +08:00
This commit is contained in:
Mrs4s 2021-08-24 09:41:26 +08:00
parent 5fb3233a44
commit 520cdd90bb
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -88,6 +88,8 @@ func main() {
if conf.Output.LogAging > 0 {
rotateOptions = append(rotateOptions, rotatelogs.WithMaxAge(time.Hour*24*time.Duration(conf.Output.LogAging)))
} else {
rotateOptions = append(rotateOptions, rotatelogs.WithMaxAge(time.Hour*24*365*10))
}
if conf.Output.LogForceNew {
rotateOptions = append(rotateOptions, rotatelogs.ForceNewFile())