From ac289dfa3086ac93a8b876b286ad9383d706b3ac Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 28 Sep 2014 21:01:42 +0300 Subject: [PATCH] Added logging for syncthing enable/disable. --- .../nutomic/syncthingandroid/syncthing/SyncthingService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index ef4e48f3..046ab9e8 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -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.