mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Checking if Timber has been planted before trying to uproot it
This commit is contained in:
parent
540ece5a40
commit
3d15d35996
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue