mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-22 15:52:01 -04:00
add instrumentation for @killeramoeba problem. send logs to crashlytics
This commit is contained in:
@@ -27,6 +27,16 @@ class MeshUtilApplication : GeeksvilleApplication() {
|
||||
Exceptions.reporter = { exception, _, _ ->
|
||||
crashlytics.recordException(exception)
|
||||
}
|
||||
|
||||
if (isAnalyticsAllowed) {
|
||||
val standardLogger = Logging.printlog
|
||||
|
||||
// send all log messages through crashyltics, so if we do crash we'll have those in the report
|
||||
Logging.printlog = { level, tag, message ->
|
||||
crashlytics.log("$tag: $message")
|
||||
standardLogger(level, tag, message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Mapbox.getInstance(this, getString(R.string.mapbox_access_token))
|
||||
|
||||
Submodule geeksville-androidlib updated: 7e91d36f46...cabf80ab17
Reference in New Issue
Block a user