Merge "reduce log level when no interface is present for rate limiting" am: 19ce06b05f am: 3990ff6dfc am: a64ef002c5

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1985028

Change-Id: I068cbdf2c77ee85f578e20323b23cb07025dfe83
diff --git a/service/src/com/android/server/ConnectivityService.java b/service/src/com/android/server/ConnectivityService.java
index 1b57c27..d30b3de 100644
--- a/service/src/com/android/server/ConnectivityService.java
+++ b/service/src/com/android/server/ConnectivityService.java
@@ -10713,8 +10713,9 @@
 
         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;