From 8d152dc20043283c6b49b238d7a9adc5762c7bf1 Mon Sep 17 00:00:00 2001 From: Martin Carpella Date: Thu, 11 Aug 2016 21:39:43 +0200 Subject: [PATCH] Log SSID whitelist for better troubleshooting of #700 --- .../nutomic/syncthingandroid/syncthing/SyncthingService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index b8dcf4d3..1b0a4439 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -269,10 +269,10 @@ public class SyncthingService extends Service implements String ssid = mDeviceStateHolder.getWifiSsid(); if (ssid != null) { if (ssids.contains(ssid)) { - Log.d(TAG, "SSID " + ssid + " found in whitelist"); + Log.d(TAG, "SSID [" + ssid + "] found in whitelist: " + ssids); return true; } - Log.i(TAG, "SSID " + ssid + " not whitelisted"); + Log.i(TAG, "SSID [" + ssid + "] not whitelisted: " + ssids); return false; } else { // Don't know the SSID (yet) (should not happen?!), so not allowing