mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Dump on operation errors
This commit is contained in:
parent
31d643c544
commit
792299977f
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue