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 sonic streams #24

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Fix sonic streams #24

merged 2 commits into from
Mar 13, 2024

Conversation

commenthol
Copy link
Owner

On nodejs each Log instance using sonic streams adds event listeners to process.exit which then displays a MaxListenersExceededWarning.

This PR adds a global cache where same streams with same options are being reused. If a lot of variants for streams or options are used, the MaxListenersExceededWarning may still show up.

On nodejs each Log instance using sonic streams adds event listeners to
process.exit which then displays a MaxListenersExceededWarning.

This PR adds a global cache where same streams with same options are being
reused. If a lot of variants for streams or options are used, the
MaxListenersExceededWarning may still show up.
@commenthol commenthol merged commit a8cb4bb into main Mar 13, 2024
2 checks passed
@commenthol commenthol deleted the fix-sonic-streams branch March 13, 2024 05:38
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.

1 participant