Reduced logging

This commit is contained in:
M66B 2022-06-06 08:49:03 +02:00
parent 9e35d87438
commit a547cd8c44
1 changed files with 4 additions and 2 deletions

View File

@ -2103,8 +2103,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
}
} catch (Throwable ex) {
if (ex instanceof OperationCanceledException)
Log.i(folder.name, ex);
if (ex instanceof OperationCanceledException ||
(ex instanceof IllegalStateException &&
"Folder not open".equals(ex.getMessage())))
Log.i(folder.name, ex); // Illegal state: getMessageCount
else
Log.e(folder.name, ex);
EntityLog.log(ServiceSynchronize.this, EntityLog.Type.Account, folder,