How to delay transport initialisation on connection error
How to delay transport initialisation on connection error
I use Winston for logging in my API. While debugging I'm using a transport for Papertrail via the module winston-papertrail.
As of now the Papertrail servers are down and my Transport is trying to connect over and over again without delaying the next try.
I want to make exponential delays for the reconnect tries. Is there support for this in Winston?
Otherwise I will need the following:
Catch the connection error for the transport
disable the transport
enable the transport again after the calculated delay
How would I do this?
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.