Reduced logging

pull/190/head
M66B 5 years ago
parent b126296210
commit 1a7f94c5df

@ -503,14 +503,18 @@ class Core {
// Delete: NO [CANNOT] STORE It's not possible to perform specified operation // Delete: NO [CANNOT] STORE It's not possible to perform specified operation
// Delete: NO [UNAVAILABLE] EXPUNGE Backend error // Delete: NO [UNAVAILABLE] EXPUNGE Backend error
// Delete: NO mailbox selected READ-ONLY // Delete: NO mailbox selected READ-ONLY
String msg = "Unrecoverable operation=" + op.name + " tries=" + op.tries + " created=" + new Date(op.created); String msg = "Unrecoverable operation=" + op.name + " tries=" + op.tries + " created=" + new Date(op.created);
EntityLog.log(context, msg + EntityLog.log(context, msg +
" folder=" + folder.id + ":" + folder.name + " folder=" + folder.id + ":" + folder.name +
" message=" + (message == null ? null : message.id + ":" + message.subject) + " message=" + (message == null ? null : message.id + ":" + message.subject) +
" reason=" + Log.formatThrowable(ex, false)); " reason=" + Log.formatThrowable(ex, false));
if (op.tries > 1 ||
if (ifolder != null && ifolder.isOpen() &&
(op.tries > 1 ||
ex.getCause() instanceof BadCommandException || ex.getCause() instanceof BadCommandException ||
ex.getCause() instanceof CommandFailedException) ex.getCause() instanceof CommandFailedException))
Log.e(new Throwable(msg, ex)); Log.e(new Throwable(msg, ex));
try { try {

Loading…
Cancel
Save