mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(analytics): Only plant DebugTree in debug builds (#4025)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
380de5edb0
commit
506cba254c
1 changed files with 9 additions and 1 deletions
|
|
@ -102,7 +102,15 @@ constructor(
|
|||
.setBundleWithTraceEnabled(true)
|
||||
.setBundleWithRumEnabled(true)
|
||||
.build()
|
||||
Timber.plant(DatadogTree(datadogLogger), CrashlyticsTree(), DebugTree())
|
||||
buildList {
|
||||
add(DatadogTree(datadogLogger))
|
||||
add(CrashlyticsTree())
|
||||
if (BuildConfig.DEBUG) {
|
||||
add(DebugTree())
|
||||
}
|
||||
}
|
||||
.forEach(Timber::plant)
|
||||
|
||||
// Initial consent state
|
||||
updateAnalyticsConsent(analyticsPrefs.analyticsAllowed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue