[PM-14241] Backport Timber hotfix (#4195)

This commit is contained in:
aj-rosado 2024-10-30 13:49:25 +01:00 committed by GitHub
parent 540ece5a40
commit 0211729525
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ class LogsManagerImpl(
}
if (value) {
Timber.plant(nonfatalErrorTree)
} else {
} else if (Timber.forest().contains(nonfatalErrorTree)) {
Timber.uproot(nonfatalErrorTree)
}
}