From 2541a2ef6987fd3d5f14a61fc1cdf39dda4a24d9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 29 Jan 2022 13:53:35 +0100 Subject: [PATCH] Improved debug info --- app/src/main/java/eu/faircode/email/Log.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 7bf18134da..a1bb80effc 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -2085,13 +2085,16 @@ public class Log { boolean auto_optimize = prefs.getBoolean("auto_optimize", false); boolean schedule = prefs.getBoolean("schedule", false); - size += write(os, "enabled=" + enabled + + boolean vpn = ConnectionHelper.vpnActive(context); + boolean netguard = Helper.isInstalled(context, "eu.faircode.netguard"); + + size += write(os, "enabled=" + enabled + (enabled ? "" : " !!!") + " interval=" + pollInterval + "\r\n" + - "metered=" + metered + - " VPN=" + ConnectionHelper.vpnActive(context) + - " NetGuard=" + Helper.isInstalled(context, "eu.faircode.netguard") + "\r\n" + - "optimizing=" + (ignoring == null ? null : !ignoring) + - " auto_optimize=" + auto_optimize + "\r\n" + + "metered=" + metered + (metered ? "" : " !!!") + + " VPN=" + vpn + (vpn ? " !!!" : "") + + " NetGuard=" + netguard + "\r\n" + + "optimizing=" + (ignoring == null ? null : !ignoring) + (Boolean.FALSE.equals(ignoring) ? " !!!" : "") + + " auto_optimize=" + auto_optimize + (auto_optimize ? " !!!" : "") + "\r\n" + "accounts=" + accounts.size() + " folders=" + db.folder().countTotal() + " messages=" + db.message().countTotal() +