plant DebugTree in K9.onCreate()
This commit is contained in:
parent
7309132659
commit
b49e699d92
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,7 @@ import com.fsck.k9.service.ShutdownReceiver;
|
|||
import com.fsck.k9.service.StorageGoneReceiver;
|
||||
import com.fsck.k9.widget.list.MessageListWidgetProvider;
|
||||
import timber.log.Timber;
|
||||
import timber.log.Timber.DebugTree;
|
||||
|
||||
|
||||
public class K9 extends Application {
|
||||
|
@ -522,6 +523,10 @@ public class K9 extends Application {
|
|||
app = this;
|
||||
Globals.setContext(this);
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
Timber.plant(new DebugTree());
|
||||
}
|
||||
|
||||
K9MailLib.setDebugStatus(new K9MailLib.DebugStatus() {
|
||||
@Override public boolean enabled() {
|
||||
return DEBUG;
|
||||
|
|
Loading…
Reference in a new issue