mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Reduced logging
This commit is contained in:
parent
3d60e1e25b
commit
45937ae10b
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue