Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52301942 authored by Ken Chen's avatar Ken Chen Committed by Automerger Merge Worker
Browse files

Merge "Better log in createNativeNetwork" am: bd0ba5d9 am: d0ab30ad am: 4be8e664

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704925

Change-Id: I963967771fff102b25ce102c56789904d5e3c342
parents 2216da85 4be8e664
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3829,7 +3829,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
            final NativeNetworkConfig config;
            if (nai.isVPN()) {
                if (getVpnType(nai) == VpnManager.TYPE_VPN_NONE) {
                    Log.wtf(TAG, "Unable to get VPN type from network " + nai.network.getNetId());
                    Log.wtf(TAG, "Unable to get VPN type from network " + nai.toShortString());
                    return false;
                }
                config = new NativeNetworkConfig(nai.network.getNetId(), NativeNetworkType.VIRTUAL,
@@ -3847,7 +3847,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
                    nai.networkCapabilities.getTransportTypes());
            return true;
        } catch (RemoteException | ServiceSpecificException e) {
            loge("Error creating network " + nai.network.getNetId() + ": " + e.getMessage());
            loge("Error creating network " + nai.toShortString() + ": " + e.getMessage());
            return false;
        }
    }