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

Winston-syslog doesn't handle connection loss? #145

Open
ghost opened this issue Jan 13, 2021 · 5 comments
Open

Winston-syslog doesn't handle connection loss? #145

ghost opened this issue Jan 13, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2021

I'm currently using Winston-syslog to send to Papertrail, but they have a policy that during a certain inactivity period the connection is closed. It seems that winston-syslog doesn't notice a loss of connection and if my app doesn't send logs for an hour or so, it completely breaks because the TCP connection gets closed. Am I perhaps missing something?

@MatehElismar
Copy link

Any idea on how to solve handle this?

@matoni109
Copy link

Also having this issue

@wbt
Copy link
Contributor

wbt commented Aug 5, 2022

Just an idea, but maybe try/catch and reconnect at the place in the code that is sending it across the closed connection?

@matoni109
Copy link

matoni109 commented Aug 9, 2022

@wbt
We have had success in staging with winston-papertrail-transport.

Which references your package / uses some of your code at a guess ?

We are not losing connection to logspout on dokku with this as the papertrail transport in the setup.

Happy to share the setup if it is of interest in closing this issue / not wanting to detract from your library in any way.

@wbt
Copy link
Contributor

wbt commented Aug 10, 2022

Don't worry about detracting - if someone else makes a more well-maintained library that meets folks' needs, please link away

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

No branches or pull requests

3 participants