mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 08:11:17 +00:00
Merge pull request #720 from capi/logging-issue-700
Log SSID whitelist for better troubleshooting of #700
This commit is contained in:
commit
239c9d3238
1 changed files with 2 additions and 2 deletions
|
@ -269,10 +269,10 @@ public class SyncthingService extends Service implements
|
||||||
String ssid = mDeviceStateHolder.getWifiSsid();
|
String ssid = mDeviceStateHolder.getWifiSsid();
|
||||||
if (ssid != null) {
|
if (ssid != null) {
|
||||||
if (ssids.contains(ssid)) {
|
if (ssids.contains(ssid)) {
|
||||||
Log.d(TAG, "SSID " + ssid + " found in whitelist");
|
Log.d(TAG, "SSID [" + ssid + "] found in whitelist: " + ssids);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Log.i(TAG, "SSID " + ssid + " not whitelisted");
|
Log.i(TAG, "SSID [" + ssid + "] not whitelisted: " + ssids);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// Don't know the SSID (yet) (should not happen?!), so not allowing
|
// Don't know the SSID (yet) (should not happen?!), so not allowing
|
||||||
|
|
Loading…
Reference in a new issue