Improved logging

This commit is contained in:
M66B 2020-12-08 16:06:52 +01:00
parent 1a7f94c5df
commit cdbf8770bb
1 changed files with 5 additions and 1 deletions

View File

@ -188,7 +188,9 @@ public class EntityOperation {
if (source == null || target == null || source.id.equals(target.id)) if (source == null || target == null || source.id.equals(target.id))
return; return;
EntityLog.log(context, "Move message=" + message.id + ":" + message.subject + EntityLog.log(context, "Move message=" + message.id +
"@" + new Date(message.received) +
":" + message.subject +
" source=" + source.id + ":" + source.name + "" + " source=" + source.id + ":" + source.name + "" +
" target=" + target.id + ":" + target.name + " target=" + target.id + ":" + target.name +
" auto read=" + autoread + " flag=" + autounflag + " importance=" + reset_importance); " auto read=" + autoread + " flag=" + autounflag + " importance=" + reset_importance);
@ -444,6 +446,8 @@ public class EntityOperation {
void cleanup(Context context, boolean fetch) { void cleanup(Context context, boolean fetch) {
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
EntityLog.log(context, "Cleanup op=" + id + "/" + name + " folder=" + folder + " message=" + message);
if (message != null) if (message != null)
db.message().setMessageUiHide(message, false); db.message().setMessageUiHide(message, false);