Added fail-safe

pull/215/head
M66B 8 months ago
parent 0b44482f5b
commit 069064502c

@ -62,10 +62,14 @@ public class FairEmailLoggingProvider extends TinylogLoggingProvider {
}
static void setup(Context context) {
System.setProperty("tinylog.directory",
Helper.ensureExists(context, "logs").getAbsolutePath());
try {
System.setProperty("tinylog.directory",
Helper.ensureExists(context, "logs").getAbsolutePath());
setLevel(context);
setLevel(context);
} catch (Throwable ex) {
Log.e(ex);
}
}
static void setLevel(Context context) {

Loading…
Cancel
Save