mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
add instrumentation for @killeramoeba problem. send logs to crashlytics
This commit is contained in:
parent
873eb0ca18
commit
1a6cebb07e
2 changed files with 11 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 7e91d36f464d681c1acf2bee5e1f6c85c04a382b
|
||||
Subproject commit cabf80ab17bcf5db6ec60b936131264a4a17700b
|
||||
Loading…
Add table
Add a link
Reference in a new issue