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) { static void setup(Context context) {
try {
System.setProperty("tinylog.directory", System.setProperty("tinylog.directory",
Helper.ensureExists(context, "logs").getAbsolutePath()); Helper.ensureExists(context, "logs").getAbsolutePath());
setLevel(context); setLevel(context);
} catch (Throwable ex) {
Log.e(ex);
}
} }
static void setLevel(Context context) { static void setLevel(Context context) {

Loading…
Cancel
Save