mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Small improvements
This commit is contained in:
@@ -398,7 +398,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
try {
|
||||
monitorAccount(account, astate);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
Log.e(account.name, ex);
|
||||
EntityLog.log(ServiceSynchronize.this, account.name + " " + Helper.formatThrowable(ex));
|
||||
db.account().setAccountError(account.id, Helper.formatThrowable(ex));
|
||||
}
|
||||
@@ -500,6 +500,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
try {
|
||||
wlAccount.acquire();
|
||||
if (e.getMessageType() == StoreEvent.ALERT) {
|
||||
Log.w(account.name + " alert: " + e.getMessage());
|
||||
db.account().setAccountError(account.id, e.getMessage());
|
||||
Core.reportError(
|
||||
ServiceSynchronize.this, account, null,
|
||||
@@ -991,8 +992,6 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
} catch (Throwable ex) {
|
||||
Log.e(account.name, ex);
|
||||
Core.reportError(this, account, null, ex);
|
||||
|
||||
EntityLog.log(this, account.name + " " + Helper.formatThrowable(ex));
|
||||
db.account().setAccountError(account.id, Helper.formatThrowable(ex));
|
||||
} finally {
|
||||
// Stop watching for operations
|
||||
|
||||
Reference in New Issue
Block a user