this.client.log(this.inputToken, message, function () {
self.emit('logged');
callback(null, true);
});
Today I face (not sure if it's usual with Loggly, I use it only very recently) a lot of "Error: socket hang up" errors. At least half of my events are not sent, and there is no way I can know it from the transport :(
You could change this part to something like this so we can plug to "error" event:
Currently, there is absolutely no error handling:
Today I face (not sure if it's usual with Loggly, I use it only very recently) a lot of "Error: socket hang up" errors. At least half of my events are not sent, and there is no way I can know it from the transport :(
You could change this part to something like this so we can plug to "error" event:
Or at least pass
err
to callback so we can catch it and re-calllog()
.