mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-06-19 14:05:03 +08:00
fix #1023.
This commit is contained in:
parent
5fb3233a44
commit
520cdd90bb
2
main.go
2
main.go
@ -88,6 +88,8 @@ func main() {
|
|||||||
|
|
||||||
if conf.Output.LogAging > 0 {
|
if conf.Output.LogAging > 0 {
|
||||||
rotateOptions = append(rotateOptions, rotatelogs.WithMaxAge(time.Hour*24*time.Duration(conf.Output.LogAging)))
|
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 {
|
if conf.Output.LogForceNew {
|
||||||
rotateOptions = append(rotateOptions, rotatelogs.ForceNewFile())
|
rotateOptions = append(rotateOptions, rotatelogs.ForceNewFile())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user