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:
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.
|
// 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.
|
||||||
|
|
Loading…
Reference in a new issue