-
Notifications
You must be signed in to change notification settings - Fork 118
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
socket.close() is not a function in Node.js 8.x+ #104
Comments
I see this too, when using TCP. I also see
This is due to line #269
which leads to #136
which presumably leads to winston doing an emit('error') which I was not listening for. I think maybe line #136 should check to see if err === true, which is really not an error. Both of these issues (emit(error) and faulty socket.close()) happen only when using TCP. |
Hi guys, |
Its been too long and I don't recall. I know that in general, winston 3.x has given me nothing but trouble and I've usually backed off to winston 2.x, and backed off any plugins so they work with 2.x. |
See my comment on the other issue I posted. I forked the repo and made a simple fix. |
I didn't check with winston 2, but with @knightcode's patch, my Node process doesn't exit after the
|
We're seeing this issue as well using: Node 10.14.0 @knightcode's patch appears to resolve the issue. What kind of repo or logs would you need to see to review either of these PRs @DABH @indexzero? |
I've merged the relevant PRs that fix these issues and will cut a v2.2.0. Thanks folks. If you spot other issues related to this, please feel free to open new issues/PRs and I'll see what I can do. |
I found that logging stopped after leaving the process running for some time. This error was printed to the local console:
There is no
close
method documented onnet.Socket
here: nodejs.org. There is adestroy
method, though.The text was updated successfully, but these errors were encountered: