diff --git a/os/glog/glog_logger_rotate.go b/os/glog/glog_logger_rotate.go index 61192df5ba1..4df261d1a53 100644 --- a/os/glog/glog_logger_rotate.go +++ b/os/glog/glog_logger_rotate.go @@ -153,7 +153,7 @@ func (l *Logger) rotateChecksTimely(ctx context.Context) { ) for _, file := range files { // ignore backup file - if gregex.IsMatchString(`.+\.\d{20}\.log`, gfile.Basename(file)) { + if gregex.IsMatchString(`.+\.\d{20}\.log`, gfile.Basename(file)) || gfile.ExtName(file) == "gz" { continue } // ignore not matching file