Merge "Only actually log the DNS events we have." into nyc-dev am: cb98809657 am: 38aff6828d
am: 4a3f56861f
* commit '4a3f56861fd49bc72441dfce9b9a26e9d42aecbf':
Only actually log the DNS events we have.
Change-Id: I70034399ed11ebbc9d1a8e2716d7326c8813265d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user