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

tcp-appender should listen to 'error' event #810

Closed
nuharaf opened this issue Nov 15, 2018 · 1 comment · Fixed by #1089
Closed

tcp-appender should listen to 'error' event #810

nuharaf opened this issue Nov 15, 2018 · 1 comment · Fixed by #1089
Labels
bug Something isn't working
Milestone

Comments

@nuharaf
Copy link

nuharaf commented Nov 15, 2018

If a server log stopped abruptly, "error" event will be emitted in client. However since no "error" listener registered, my application stopped with this error throw er; // Unhandled 'error' event

My solution is to add nop listener to error event, like this :
socket.on('error',function(){});

@lamweili lamweili added this to the 6.4.0 milestone Jan 20, 2022
@lamweili
Copy link
Contributor

Fixed in log4js@6.4.0.

@lamweili lamweili added the bug Something isn't working label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants