1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +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.
mApi.shutdown();
Log.i(TAG, "Starting syncthing according to current state and preferences");
mCurrentState = State.STARTING;
registerOnWebGuiAvailableListener(mApi);
new PollWebGuiAvailableTaskImpl().execute(mConfig.getWebGuiUrl());
@ -169,6 +170,7 @@ public class SyncthingService extends Service {
if (mCurrentState == State.DISABLED)
return;
Log.i(TAG, "Stopping syncthing according to current state and preferences");
mCurrentState = State.DISABLED;
// Syncthing is currently started, perform the stop later.