From d0b100c0338d7384d582a89027cdbb6524315e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=8F=AF?= Date: Fri, 28 Oct 2022 12:59:47 +0800 Subject: [PATCH] fix --- pkg/xlog/rotate/lumberjack_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {