mirror of https://github.com/M66B/FairEmail.git
Added logging
This commit is contained in:
parent
9338e3d4a3
commit
9cf3154f66
|
@ -2076,9 +2076,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
private List<TupleAccountState> lastAccountStates = null;
|
private List<TupleAccountState> lastAccountStates = null;
|
||||||
|
|
||||||
private void post(Bundle command) {
|
private void post(Bundle command) {
|
||||||
Log.i("### command posted");
|
EntityLog.log(ServiceSynchronize.this, "### command " +
|
||||||
for (String extra : Log.getExtras(command))
|
TextUtils.join(" ", Log.getExtras(command)));
|
||||||
Log.i("### " + extra);
|
|
||||||
post(command, lastNetworkState, lastAccountStates);
|
post(command, lastNetworkState, lastAccountStates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2108,8 +2107,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
if (networkState == null)
|
if (networkState == null)
|
||||||
networkState = ConnectionHelper.getNetworkState(ServiceSynchronize.this);
|
networkState = ConnectionHelper.getNetworkState(ServiceSynchronize.this);
|
||||||
|
|
||||||
if (accountStates == null)
|
if (accountStates == null) {
|
||||||
|
EntityLog.log(ServiceSynchronize.this, "### no accounts");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
||||||
boolean enabled = prefs.getBoolean("enabled", true);
|
boolean enabled = prefs.getBoolean("enabled", true);
|
||||||
|
|
Loading…
Reference in New Issue