Disable log for per uid blocked status changed event

This consumes ~3.5% system logs, however it is not very useful
when debugging since similar information could be obtained from
dumpsys {connectivity|netpolicy}. Thus, remove the log.

Test: manual
Bug: 135504481
Change-Id: I04d2b7402f892546722fe6868c521afd9534f183
This commit is contained in:
junyulai
2020-05-29 14:44:42 +08:00
parent 6642ec61c3
commit 31a6c32056

View File

@@ -1374,10 +1374,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
if (nri == null || net == null || !LOGD_BLOCKED_NETWORKINFO) {
return;
}
String action = blocked ? "BLOCKED" : "UNBLOCKED";
log(String.format("Blocked status changed to %s for %d(%d) on netId %d", blocked,
nri.mUid, nri.request.requestId, net.netId));
mNetworkInfoBlockingLogs.log(action + " " + nri.mUid);
final String action = blocked ? "BLOCKED" : "UNBLOCKED";
mNetworkInfoBlockingLogs.log(String.format(
"%s %d(%d) on netId %d", action, nri.mUid, nri.request.requestId, net.netId));
}
/**