Dump on operation errors

This commit is contained in:
M66B 2021-12-29 16:03:30 +01:00
parent 31d643c544
commit 792299977f
2 changed files with 4 additions and 2 deletions

View File

@ -181,12 +181,13 @@ class Core {
static void processOperations(
Context context,
EntityAccount account, EntityFolder folder, List<TupleOperationEx> ops,
Store istore, Folder ifolder,
EmailService iservice, Folder ifolder,
State state, long serial)
throws JSONException, FolderClosedException {
try {
Log.i(folder.name + " start process");
Store istore = iservice.getStore();
DB db = DB.getInstance(context);
NotificationManager nm =
@ -500,6 +501,7 @@ class Core {
for (TupleOperationEx s : similar.keySet())
ops.remove(s);
} catch (Throwable ex) {
iservice.dump();
if (ex instanceof OperationCanceledException)
Log.i(folder.name, ex);
else

View File

@ -1943,7 +1943,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Core.processOperations(ServiceSynchronize.this,
account, folder,
partition,
iservice.getStore(), ifolder,
iservice, ifolder,
state, serial);
} catch (Throwable ex) {