mirror of https://github.com/M66B/FairEmail.git
Log last fail
This commit is contained in:
parent
e5536f79d5
commit
317e4cbfe9
|
@ -923,6 +923,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
|
|
||||||
int fast_fails = 0;
|
int fast_fails = 0;
|
||||||
long first_fail = 0;
|
long first_fail = 0;
|
||||||
|
Throwable last_fail = null;
|
||||||
state.setBackoff(CONNECT_BACKOFF_START);
|
state.setBackoff(CONNECT_BACKOFF_START);
|
||||||
while (state.isRunning() &&
|
while (state.isRunning() &&
|
||||||
currentThread != null && currentThread.equals(thread)) {
|
currentThread != null && currentThread.equals(thread)) {
|
||||||
|
@ -1609,6 +1610,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
|
|
||||||
Log.i(account.name + " done state=" + state);
|
Log.i(account.name + " done state=" + state);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
last_fail = ex;
|
||||||
Log.e(account.name, ex);
|
Log.e(account.name, ex);
|
||||||
EntityLog.log(
|
EntityLog.log(
|
||||||
ServiceSynchronize.this,
|
ServiceSynchronize.this,
|
||||||
|
@ -1737,7 +1739,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
" missing=" + (missing / 1000L) +
|
" missing=" + (missing / 1000L) +
|
||||||
" compensate=" + compensate +
|
" compensate=" + compensate +
|
||||||
" backoff=" + backoff +
|
" backoff=" + backoff +
|
||||||
" host=" + account.host;
|
" host=" + account.host +
|
||||||
|
" ex=" + Log.formatThrowable(last_fail, false);
|
||||||
Log.e(msg);
|
Log.e(msg);
|
||||||
EntityLog.log(this, msg);
|
EntityLog.log(this, msg);
|
||||||
state.setBackoff(backoff * 60);
|
state.setBackoff(backoff * 60);
|
||||||
|
|
Loading…
Reference in New Issue