Better log in createNativeNetwork
Dump more information from NetworkAgentInfo in error log. Bug: N/A Test: m Change-Id: I92981c03ad80e8b1d7ffaf45d50cc0bfd0b283b0
This commit is contained in:
parent
6df7a90c1f
commit
755a4e7715
1 changed files with 2 additions and 2 deletions
|
|
@ -3812,7 +3812,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,
|
||||
|
|
@ -3830,7 +3830,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue