chore: add test for logging rotate size (#3587)

This commit is contained in:
Kevin Wan
2023-09-24 22:28:03 +08:00
committed by GitHub
parent 814852f0b8
commit 4222fd97bc
2 changed files with 16 additions and 0 deletions

View File

@@ -298,6 +298,7 @@ func (l *RotateLogger) initialize() error {
if l.fp, err = os.OpenFile(l.filename, os.O_APPEND|os.O_WRONLY, defaultFileMode); err != nil {
return err
}
l.currentSize = fileInfo.Size()
}