diff --git a/pkg/xlog/rotate/lumberjack_windows.go b/pkg/xlog/rotate/lumberjack_windows.go index 3301a5b588..f48bb8671b 100644 --- a/pkg/xlog/rotate/lumberjack_windows.go +++ b/pkg/xlog/rotate/lumberjack_windows.go @@ -370,7 +370,7 @@ func (l *Logger) millRunOnce() error { // Only count the uncompressed log file or the // compressed log file, not both. fn := f.Name() - fn = strings.TrimSuffix(fn, compressSuffix)s + fn = strings.TrimSuffix(fn, compressSuffix) preserved[fn] = true if len(preserved) > l.MaxBackups {