mirror of https://github.com/M66B/FairEmail.git
Improved logging
This commit is contained in:
parent
1a7f94c5df
commit
cdbf8770bb
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue