forked from winstonjs/winston
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] File transport under stress hangs logger (winstonjs#1318)
* [fix] Add drain handler back into file transport This looks like it was removed (by accident?) in 40c1ce4 * [fix] Remove extra drain event * Prevent this._drains from going negative * Refactor drain mechanism to fix file transport logging under stress * Removed early return when write returns false * Greatly simplify drain mechanism based on PR feedback and testing * Revert "Greatly simplify drain mechanism based on PR feedback and testing" This reverts commit 7ff756b. * Changes and cleanup based on PR feebback * Add test case that should cover the original reason for this change This test should fail on current winston 'master' and succeed on this PR * Test the content of the message as well just in case * Add synchronous version of the file transport large message stress test
- Loading branch information
Showing
2 changed files
with
109 additions
and
45 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