Skip to content

Commit

Permalink
[PM-14241] Checking if Timber tree has been added before trying to re…
Browse files Browse the repository at this point in the history
…move it (#4194)
  • Loading branch information
aj-rosado authored Oct 30, 2024
1 parent 1c10a94 commit d71389a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LogsManagerImpl(
}
if (value) {
Timber.plant(nonfatalErrorTree)
} else {
} else if (Timber.forest().contains(nonfatalErrorTree)) {
Timber.uproot(nonfatalErrorTree)
}
}
Expand Down

0 comments on commit d71389a

Please sign in to comment.