mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-06-21 17:31:57 +08:00
chore: add test for logging rotate size (#3587)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user