Merge "reduce log level when no interface is present for rate limiting"

This commit is contained in:
Treehugger Robot
2022-02-19 21:31:05 +00:00
committed by Gerrit Code Review

View File

@@ -10713,8 +10713,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
final String iface = networkAgent.linkProperties.getInterfaceName(); final String iface = networkAgent.linkProperties.getInterfaceName();
if (iface == null) { if (iface == null) {
// This can never happen. // This may happen in tests, but if there is no interface then there is nothing that
logwtf("canNetworkBeRateLimited: LinkProperties#getInterfaceName returns null"); // can be rate limited.
loge("canNetworkBeRateLimited: LinkProperties#getInterfaceName returns null");
return false; return false;
} }
return true; return true;