Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle rotation failure in a better way
Previously it would just be a silent failure. Now, if we really can't open a new file after log rotation, then fall back to stdErr so that * user at least has a chance to detect the problem * we always have a valid OutputStream to log to Also fix tests which had assumptions which no longer hold (the OutputStream is wrapped so it never changes from the view of the user)
- Loading branch information
1 parent
2c0e998
commit 2f7767f
Showing
3 changed files
with
191 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.