1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Improved debug info

This commit is contained in:
M66B 2022-01-29 13:53:35 +01:00
parent a50a83824b
commit 2541a2ef69

View file

@ -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() +