mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Debug info: filters
This commit is contained in:
parent
14e87e4afa
commit
b5b500e2b2
1 changed files with 13 additions and 1 deletions
|
@ -2353,6 +2353,17 @@ public class Log {
|
|||
filter = nm.getCurrentInterruptionFilter();
|
||||
}
|
||||
|
||||
StringBuilder filters = new StringBuilder();
|
||||
for (String key : prefs.getAll().keySet())
|
||||
if (key.startsWith("filter_")) {
|
||||
Object value = prefs.getAll().get(key);
|
||||
if (Boolean.TRUE.equals(value))
|
||||
filters.append(' ')
|
||||
.append(key.substring(7))
|
||||
.append('=')
|
||||
.append(value);
|
||||
}
|
||||
|
||||
size += write(os, "enabled=" + enabled + (enabled ? "" : " !!!") +
|
||||
" interval=" + pollInterval + "\r\n" +
|
||||
"metered=" + metered + (metered ? "" : " !!!") +
|
||||
|
@ -2373,7 +2384,8 @@ public class Log {
|
|||
" messages=" + db.message().countTotal() +
|
||||
" rules=" + db.rule().countTotal() +
|
||||
" ops=" + db.operation().getOperationCount() +
|
||||
" outbox=" + db.message().countOutbox() +
|
||||
" outbox=" + db.message().countOutbox() + "\r\n" +
|
||||
"filter " + filters +
|
||||
"\r\n\r\n");
|
||||
|
||||
if (schedule) {
|
||||
|
|
Loading…
Reference in a new issue