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

Rotating-file stream prevent process from exiting #125

Merged
merged 4 commits into from
Jun 1, 2014

Conversation

glenn-murray-bse
Copy link
Contributor

Updated version of pull request #97

Merged with latest trentm/node-bunyan master.

Includes test case.

Chakrit Wichian and others added 4 commits August 21, 2013 14:47
The rotation `setTimeout` from `RotatingFileStream` will prevent the process from exiting.
This fix simply `unref()` the timeout immediately after it is set.
Will fail if any timers or callbacks remain registered when
instantiating a logger with a rotating file.
@jeffbski
Copy link

+1 I ran into this issue as well and the unref works well

trentm added a commit that referenced this pull request Jun 1, 2014
Rotating-file stream prevent process from exiting
@trentm trentm merged commit 7fb58aa into trentm:master Jun 1, 2014
@trentm
Copy link
Owner

trentm commented Jun 1, 2014

Thanks very much for this. I apologize for taking so long to get to this. This will be in bunyan 0.23.1.

@jeffbski
Copy link

jeffbski commented Jun 9, 2014

Thanks!

On Sun, Jun 1, 2014 at 1:29 AM, Trent Mick notifications@github.com wrote:

Thanks very much for this. I apologize for taking so long to get to this.
This will be in bunyan 0.23.1.

Reply to this email directly or view it on GitHub
#125 (comment).

Jeff Barczewski
Founder of CodeWinds
http://codewinds.com/
Web developer training - screencasts, podcast, blog

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.

3 participants