Log account errors

This commit is contained in:
M66B 2018-11-29 11:09:20 +01:00
parent ccbd7c82fa
commit fc0348c4a8
1 changed files with 2 additions and 0 deletions

View File

@ -1230,6 +1230,7 @@ public class ServiceSynchronize extends LifecycleService {
Log.e(Helper.TAG, account.name + " " + ex + "\n" + Log.getStackTraceString(ex));
reportError(account.name, null, ex);
EntityLog.log(ServiceSynchronize.this, account.name + " " + Helper.formatThrowable(ex));
db.account().setAccountError(account.id, Helper.formatThrowable(ex));
} finally {
EntityLog.log(this, account.name + " closing");
@ -2381,6 +2382,7 @@ public class ServiceSynchronize extends LifecycleService {
monitorAccount(account, astate);
} catch (Throwable ex) {
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
EntityLog.log(ServiceSynchronize.this, account.name + " " + Helper.formatThrowable(ex));
db.account().setAccountError(account.id, Helper.formatThrowable(ex));
}
}