Merge "reduce log level when no interface is present for rate limiting" am: 19ce06b05f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1985028 Change-Id: Ia805d853e0a7d7d041888bfbff12abc9819fd7de
This commit is contained in:
commit
3990ff6dfc
1 changed files with 3 additions and 2 deletions
|
|
@ -10713,8 +10713,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
|
||||
final String iface = networkAgent.linkProperties.getInterfaceName();
|
||||
if (iface == null) {
|
||||
// This can never happen.
|
||||
logwtf("canNetworkBeRateLimited: LinkProperties#getInterfaceName returns null");
|
||||
// This may happen in tests, but if there is no interface then there is nothing that
|
||||
// can be rate limited.
|
||||
loge("canNetworkBeRateLimited: LinkProperties#getInterfaceName returns null");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue