Library version
Version: 2.2.0
What's happening:
We use logdna-browser for a capacitor/ionic app but have noticed that when the net goes offline and a log is sent, fetch throws an error which results in the buffer-manager in this library not to send log batches anymore as seen here.
What should happen:
This library should handle network disconnects and not shut down, which would be the case for web apps on browser and mobile.
Or at least give a hook to the developer so that they can recover by re-initializing.
Reproduction steps:
In a react/vue/angular sample app, add this library and some logs and npm start. Navigate to the app in the browser and either close the connection through the inspection window or just your net connection. The library stops logging.
Library version
Version: 2.2.0
What's happening:
We use
logdna-browserfor a capacitor/ionic app but have noticed that when the net goes offline and a log is sent, fetch throws an error which results in the buffer-manager in this library not to send log batches anymore as seen here.What should happen:
This library should handle network disconnects and not shut down, which would be the case for web apps on browser and mobile.
Or at least give a hook to the developer so that they can recover by re-initializing.
Reproduction steps:
In a react/vue/angular sample app, add this library and some logs and
npm start. Navigate to the app in the browser and either close the connection through the inspection window or just your net connection. The library stops logging.