mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Dynamically change log level
This commit is contained in:
@@ -67,7 +67,7 @@ public class ApplicationEx extends Application
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
TinyLogConfigurationLoader.setup(base);
|
||||
FairEmailLoggingProvider.setup(base);
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
@@ -413,6 +413,10 @@ public class ApplicationEx extends Application
|
||||
// Should be excluded for import
|
||||
restart(this, key);
|
||||
break;
|
||||
case "debug":
|
||||
case "log_level":
|
||||
FairEmailLoggingProvider.setLevel(this);
|
||||
break;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
||||
Reference in New Issue
Block a user