1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 06:11:19 +00:00

Added logging for syncthing enable/disable.

This commit is contained in:
Felix Ableitner 2014-09-28 21:01:42 +03:00
parent 78680eceb1
commit ac289dfa30

View file

@ -158,6 +158,7 @@ public class SyncthingService extends Service {
// NOTE: This will log an exception if syncthing is not actually running. // NOTE: This will log an exception if syncthing is not actually running.
mApi.shutdown(); mApi.shutdown();
Log.i(TAG, "Starting syncthing according to current state and preferences");
mCurrentState = State.STARTING; mCurrentState = State.STARTING;
registerOnWebGuiAvailableListener(mApi); registerOnWebGuiAvailableListener(mApi);
new PollWebGuiAvailableTaskImpl().execute(mConfig.getWebGuiUrl()); new PollWebGuiAvailableTaskImpl().execute(mConfig.getWebGuiUrl());
@ -169,6 +170,7 @@ public class SyncthingService extends Service {
if (mCurrentState == State.DISABLED) if (mCurrentState == State.DISABLED)
return; return;
Log.i(TAG, "Stopping syncthing according to current state and preferences");
mCurrentState = State.DISABLED; mCurrentState = State.DISABLED;
// Syncthing is currently started, perform the stop later. // Syncthing is currently started, perform the stop later.