Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf55f0e0 authored by Junyu Lai's avatar Junyu Lai
Browse files

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 21a352f7)
parent 1ca44e0d
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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));
    }

    /**