Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Fix streams not draining properly #1291

Merged
merged 1 commit into from
Apr 25, 2018
Merged

[fix] Fix streams not draining properly #1291

merged 1 commit into from
Apr 25, 2018

Conversation

ChrisAlderson
Copy link
Member

A possible fix for #1144. It seems like the _stream is not draining properly, but by draining the _dest stream we also drain the _stream because they are piped together? I'm not sure about this, because it did fix the script provided by @juanda99. This doesn't fix the script of @kramer65, possible because the while (true) { } loop is blocking the NodeJS event-loop.

Copy link
Member

@indexzero indexzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth trying it out – nearing the end of my patience with lib/winston/transports/file.js. Considering using a third-party library to do the stream rolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants