|
|
@ -819,12 +819,13 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
wlAccount.acquire();
|
|
|
|
wlAccount.acquire();
|
|
|
|
String type = (e.getMessageType() == StoreEvent.ALERT ? "alert" : "notice");
|
|
|
|
String type = (e.getMessageType() == StoreEvent.ALERT ? "alert" : "notice");
|
|
|
|
EntityLog.log(ServiceSynchronize.this, account.name + " " + type + ": " + e.getMessage());
|
|
|
|
|
|
|
|
if (e.getMessageType() == StoreEvent.ALERT) {
|
|
|
|
if (e.getMessageType() == StoreEvent.ALERT) {
|
|
|
|
|
|
|
|
EntityLog.log(ServiceSynchronize.this, account.name + " " + type + ": " + e.getMessage());
|
|
|
|
db.account().setAccountError(account.id, e.getMessage());
|
|
|
|
db.account().setAccountError(account.id, e.getMessage());
|
|
|
|
reportError(account, null, new AlertException(e.getMessage()));
|
|
|
|
reportError(account, null, new AlertException(e.getMessage()));
|
|
|
|
state.error();
|
|
|
|
state.error();
|
|
|
|
}
|
|
|
|
} else
|
|
|
|
|
|
|
|
Log.i(Helper.TAG, account.name + " " + type + ": " + e.getMessage());
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
wlAccount.release();
|
|
|
|
wlAccount.release();
|
|
|
|
}
|
|
|
|
}
|
|
|
|