From 08b438ae7068783cbdfce6f2e8e800b4954adaab Mon Sep 17 00:00:00 2001 From: lucaslin Date: Thu, 1 Apr 2021 19:17:08 +0800 Subject: [PATCH] Downgrade the log level of exception log This exception log is usually printed when the device connects to a wifi. The cause is that when the device connects to a wifi, wifi will send CONNECTING state first, then CONNECTED state. And in CONNECTING state, wifi will send the LinkProperties to ConnectivityService and ConnectivityService will try to update that LinkProperties(including interface) to netd. But the netid hasn't set to netd yet before wifi CONNECTED, so this exception log will be printed. There is no really issue in this case, so downgrade the log level might be a better thing for all Android developer. Bug: 181269159 Test: m Change-Id: I61c09352225a610fcd6d3dd33b782ee114c35fc5 --- services/core/java/com/android/server/ConnectivityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 70c9fe7f3ac9c..9c61d9e054251 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -6623,7 +6623,7 @@ public class ConnectivityService extends IConnectivityManager.Stub mDeps.reportNetworkInterfaceForTransports(mContext, iface, caps.getTransportTypes()); } catch (Exception e) { - loge("Exception adding interface: " + e); + logw("Exception adding interface: " + e); } } }