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 don't emitting first "logRemoved" event #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DenkevichOleg
Copy link

fix don't emitting event about deleting oldest file which should be emitted each time when server restarting (winstonjs/winston-daily-rotate-file#296 issue)
reason in double emitting "new" event when app started, and first emit happens before stream returning and no one can hear "logRemoved" event

fix don't emitting event about deleting oldest file which should be emitted each time when server restarting (winstonjs/winston-daily-rotate-file#296 issue)
reason in double emitting "new" event when app started, and first emit happens before stream returning and no one can hear "logRemoved" event
@waynewaynetsai
Copy link

waynewaynetsai commented Aug 31, 2022

Same issue here!
We need this PR.

@rogerc
Copy link
Owner

rogerc commented Oct 30, 2022

Hi @DenkevichOleg

I've rewritten the library in Typescript. I think this is not an issue anymore as the order of events is slightly cleaner now. The new version will be released in 7 days or so. Link below.

https://github.com/rogerc/file-stream-rotator/tree/v1

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