mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Improved logging
This commit is contained in:
parent
a8b12a0c92
commit
365832355b
1 changed files with 7 additions and 4 deletions
|
@ -1254,9 +1254,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
if ("Still here".equals(message) &&
|
||||
!account.isTransient(ServiceSynchronize.this)) {
|
||||
long now = new Date().getTime();
|
||||
if (now - start < STILL_THERE_THRESHOLD)
|
||||
optimizeAccount(account, message);
|
||||
long elapsed = new Date().getTime() - start;
|
||||
if (elapsed < STILL_THERE_THRESHOLD)
|
||||
optimizeAccount(account, "'" + message + "'" +
|
||||
" elapsed=" + elapsed + " ms");
|
||||
}
|
||||
} else
|
||||
try {
|
||||
|
@ -2248,7 +2249,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
DB db = DB.getInstance(this);
|
||||
|
||||
int pollInterval = getPollInterval(this);
|
||||
EntityLog.log(this, "Auto optimize account=" + account.name + " poll interval=" + pollInterval);
|
||||
EntityLog.log(this, account.name + " auto optimize" +
|
||||
" reason=" + reason +
|
||||
" poll interval=" + pollInterval);
|
||||
if (pollInterval == 0) {
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
|
Loading…
Reference in a new issue