diff --git a/client/logmon/logging/rotator.go b/client/logmon/logging/rotator.go index b204648a0..8f655b4f2 100644 --- a/client/logmon/logging/rotator.go +++ b/client/logmon/logging/rotator.go @@ -256,6 +256,7 @@ func (f *FileRotator) Close() error { f.doneCh <- struct{}{} close(f.purgeCh) f.closed = true + f.currentFile.Close() } return nil