commit | be9e4f648c5491a82345f78d2ee0c529a0a55ca4 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Oct 08 19:05:34 2019 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Oct 21 16:17:41 2019 +0800 |
tree | a96adc10308ce4408856162ef3fd75b209e858c1 | |
parent | 021c3e1e8f58bbb84879277a5dd64afc69fdec57 [diff] |
Add stats samples by looking up server address When adding a stats sample, it passes the server index rather than the server address. It's not wrong if the order of dns servers in lookup threads is fixed. However, it restrains the flexibility to change the order as well. This change fixes it to pass the server address so that the order of dns servers in a lookup thread can change. Bug: 137169582 Test: atest --include-subdirs packages/modules/DnsResolver Change-Id: I1f4542165e90289efe8bf6d618639b82a8cc740e
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.