mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-06 02:21:20 -04:00
add instrumentation for @killeramoeba problem. send logs to crashlytics
This commit is contained in:
1 parent
873eb0ca18
commit
1a6cebb07e
2 files changed
+11
-1
No files matched your search
@@ -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
Submodule geeksville-androidlib updated: 7e91d36f46...cabf80ab17.
Reference in new issue
Block a user