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(lib): File Transports Not Emitting Errors On ENOENT Errors
Error handling for the `fs.stat` call in daily-rotate & file transports was setup to only emit errors that weren't ENOENT errors. For ENOENT errors it calls createAndFlush(0) and then does nothing to handle the error. Logic was changed to always emit errors and call createAndFlush(0) if the error is an ENOENT error. fixes winstonjs#511
- Loading branch information
Alex Bell
committed
Mar 16, 2015
1 parent
8ba9be0
commit 25d58af
Showing
2 changed files
with
6 additions
and
6 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