mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-26 12:51:28 +00:00
Added logging for syncthing enable/disable.
This commit is contained in:
parent
78680eceb1
commit
ac289dfa30
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue