Skip to content

Commit

Permalink
close file handle when FileRotator object will closed. Fixes #6309 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tantra35 authored and tgross committed Sep 13, 2019
1 parent ad741af commit a88482a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/logmon/logging/rotator.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (f *FileRotator) Close() error {
f.doneCh <- struct{}{}
close(f.purgeCh)
f.closed = true
f.currentFile.Close()
}

return nil
Expand Down

0 comments on commit a88482a

Please sign in to comment.