Merge "Only actually log the DNS events we have." into nyc-dev am: cb98809657
am: d755f9b86b
* commit 'd755f9b86b5c81c3c0607e78fd0cc2e08c44c304':
Only actually log the DNS events we have.
Change-Id: I265934c939ed4e3f516f876ba4f0c4fe0f67ff55
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