OSDN Git Service

Added logging in a few error paths for wifi config installation.
authorJan Nordqvist <jannq@google.com>
Fri, 31 Jul 2015 22:32:25 +0000 (15:32 -0700)
committerJan Nordqvist <jannq@google.com>
Sat, 1 Aug 2015 00:19:49 +0000 (17:19 -0700)
Bug: 22790527
Change-Id: I71b298b98da098f647f52886c3c3a7456cb24d51

wifi/java/android/net/wifi/WifiManager.java

index d915e5d..cf88df4 100644 (file)
@@ -669,6 +669,7 @@ public class WifiManager {
         try {
             return mService.getConfiguredNetworks();
         } catch (RemoteException e) {
+            Log.w(TAG, "Caught RemoteException trying to get configured networks: " + e);
             return null;
         }
     }
@@ -1589,6 +1590,7 @@ public class WifiManager {
         try {
             return mService.buildWifiConfig(uriString, mimeType, data);
         } catch (RemoteException e) {
+            Log.w(TAG, "Caught RemoteException trying to build wifi config: " + e);
             return null;
         }
     }