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
Merged-In: I04d2b7402f892546722fe6868c521afd9534f183
(cherry picked from commit 21a352f761ce558bea6fa9ab2a4e49a164228b56)
This commit is contained in:
Junyu Lai
2020-06-02 09:52:38 +00:00
parent bfd4336f31
commit edb74fd839

View File

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