mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 13:57:03 -06:00
Checking if Timber has been planted before trying to uproot it
This commit is contained in:
parent
540ece5a40
commit
3d15d35996
@ -30,7 +30,7 @@ class LogsManagerImpl(
|
|||||||
}
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
Timber.plant(nonfatalErrorTree)
|
Timber.plant(nonfatalErrorTree)
|
||||||
} else {
|
} else if (Timber.forest().contains(nonfatalErrorTree)) {
|
||||||
Timber.uproot(nonfatalErrorTree)
|
Timber.uproot(nonfatalErrorTree)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user