mirror of https://github.com/M66B/FairEmail.git
Improved debug info
This commit is contained in:
parent
95e12d3d26
commit
9651e20b41
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue