Added account, folder, message to log.txt

pull/204/head 1.1690
M66B 3 years ago
parent 3e7043f021
commit 8c5c22ea79

@ -2098,8 +2098,13 @@ public class Log {
DateFormat TF = Helper.getTimeInstance(context);
for (EntityLog entry : db.log().getLogs(from, null))
size += write(os, String.format("%s [%d] %s\r\n",
TF.format(entry.time), entry.type.ordinal(), entry.data));
size += write(os, String.format("%s [%d:%d:%d:%d] %s\r\n",
TF.format(entry.time),
entry.type.ordinal(),
(entry.account == null ? 0 : entry.account),
(entry.folder == null ? 0 : entry.folder),
(entry.message == null ? 0 : entry.message),
entry.data));
}
db.attachment().setDownloaded(attachment.id, size);

Loading…
Cancel
Save