1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Reduced logging

This commit is contained in:
M66B 2022-05-11 14:43:55 +02:00
parent 3d60e1e25b
commit 45937ae10b

View file

@ -533,7 +533,10 @@ class Core {
ops.remove(s);
} catch (Throwable ex) {
iservice.dump(account.name + "/" + folder.name);
if (ex instanceof OperationCanceledException)
if (ex instanceof OperationCanceledException ||
(ex instanceof IllegalArgumentException &&
ex.getMessage() != null &&
ex.getMessage().startsWith("Message not found for")))
Log.i(folder.name, ex);
else
Log.e(folder.name, ex);
@ -801,7 +804,7 @@ class Core {
Log.e(ex);
}
throw new OperationCanceledException("Message not found for " + op.name + " folder=" + folder.name);
throw new IllegalArgumentException("Message not found for " + op.name + " folder=" + folder.name);
}
db.message().setMessageUid(message.id, message.uid);