Improved logging

pull/146/head
M66B 7 years ago
parent 6807c7d08e
commit 9f68b1fa9d

@ -690,7 +690,7 @@ public class ServiceSynchronize extends LifecycleService {
int backoff = CONNECT_BACKOFF_START; int backoff = CONNECT_BACKOFF_START;
while (state.running) { while (state.running) {
EntityLog.log(this, account.name + " run"); Log.i(Helper.TAG, account.name + " run");
// Debug // Debug
boolean debug = PreferenceManager.getDefaultSharedPreferences(this).getBoolean("debug", false); boolean debug = PreferenceManager.getDefaultSharedPreferences(this).getBoolean("debug", false);
@ -797,7 +797,7 @@ public class ServiceSynchronize extends LifecycleService {
}); });
// Initiate connection // Initiate connection
Log.i(Helper.TAG, account.name + " connect"); EntityLog.log(this, account.name + " connecting");
for (EntityFolder folder : db.folder().getFolders(account.id)) for (EntityFolder folder : db.folder().getFolders(account.id))
db.folder().setFolderState(folder.id, null); db.folder().setFolderState(folder.id, null);
db.account().setAccountState(account.id, "connecting"); db.account().setAccountState(account.id, "connecting");

Loading…
Cancel
Save