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

Commit d755f9b8 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by android-build-merger
Browse files

Merge "Only actually log the DNS events we have." into nyc-dev

am: cb988096

* commit 'cb988096':
  Only actually log the DNS events we have.

Change-Id: I97340d6b0483961d848e6f604a112636000675af
parents c6a49bb0 cb988096
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -78,9 +78,11 @@ public class DnsEventListenerService extends IDnsEventListener.Stub {
                return;
            }

            // Only log as many events as we actually have.
            byte[] eventTypes = Arrays.copyOf(mEventTypes, mEventCount);
            byte[] returnCodes = Arrays.copyOf(mReturnCodes, mEventCount);
            int[] latenciesMs = Arrays.copyOf(mLatenciesMs, mEventCount);
            DnsEvent.logEvent(mNetId, mEventTypes, mReturnCodes, mLatenciesMs);
            DnsEvent.logEvent(mNetId, eventTypes, returnCodes, latenciesMs);
            maybeLog(String.format("Logging %d results for netId %d", mEventCount, mNetId));
            mEventCount = 0;
        }