msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

Add the syncServerUrl to bugsnag context #262

Closed jmbrunskill closed 8 months ago

jmbrunskill commented 8 months ago

Adds the syncURL to bugsnag context, and a breadcrumb for BLE Server Restarts. None of these are particularly important, but would be useful to at least have a URL to traceback when an error is logged. Mainly wanted to do something to ensure it's working.

We could log a lot more errors (Bluetooth connection issues for example) maybe in future we have a debug setting to enable sending all these errors to bugsnag? We probably don't want every URL sync issue and every bluetooth connectivity issue sent, but would be helpful to be able to turn that on somehow. See also: #21 Better Bugsnag Breadcrumbing

Also: adds a .gitignore for build files we don't want to commit