Debug info: filters

pull/212/head
M66B 2 years ago
parent 14e87e4afa
commit b5b500e2b2

@ -2353,6 +2353,17 @@ public class Log {
filter = nm.getCurrentInterruptionFilter(); 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 ? "" : " !!!") + size += write(os, "enabled=" + enabled + (enabled ? "" : " !!!") +
" interval=" + pollInterval + "\r\n" + " interval=" + pollInterval + "\r\n" +
"metered=" + metered + (metered ? "" : " !!!") + "metered=" + metered + (metered ? "" : " !!!") +
@ -2373,7 +2384,8 @@ public class Log {
" messages=" + db.message().countTotal() + " messages=" + db.message().countTotal() +
" rules=" + db.rule().countTotal() + " rules=" + db.rule().countTotal() +
" ops=" + db.operation().getOperationCount() + " ops=" + db.operation().getOperationCount() +
" outbox=" + db.message().countOutbox() + " outbox=" + db.message().countOutbox() + "\r\n" +
"filter " + filters +
"\r\n\r\n"); "\r\n\r\n");
if (schedule) { if (schedule) {

Loading…
Cancel
Save