Improved debug info

This commit is contained in:
M66B 2022-04-22 16:30:48 +02:00
parent 95e12d3d26
commit 9651e20b41
1 changed files with 10 additions and 0 deletions

View File

@ -2127,6 +2127,15 @@ public class Log {
messages += folder.messages;
}
boolean unmetered = false;
try {
if (account.conditions != null) {
JSONObject jconditions = new JSONObject(account.conditions);
unmetered = jconditions.optBoolean("unmetered");
}
} catch (Throwable ignored) {
}
size += write(os, account.name + (account.primary ? "*" : "") +
" " + (account.protocol == EntityAccount.TYPE_IMAP ? "IMAP" : "POP") + "/" + account.auth_type +
" " + account.host + ":" + account.port + "/" + account.encryption +
@ -2136,6 +2145,7 @@ public class Log {
" ondemand=" + account.ondemand +
" msgs=" + content + "/" + messages +
" ops=" + db.operation().getOperationCount(account.id) +
" unmetered=" + unmetered + (unmetered ? " !!!" : "") +
" " + account.state +
(account.last_connected == null ? "" : " " + dtf.format(account.last_connected)) +
(account.error == null ? "" : "\r\n" + account.error) +