Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Oct 28, 2022
1 parent c3b4000 commit d0b100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/xlog/rotate/lumberjack_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0b100c

Please sign in to comment.