commit | c573a3d76a3ace472353e6620a91a4b8b54cb0f8 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Feb 07 20:15:15 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Thu Feb 20 17:30:48 2020 +0800 |
tree | cf9cd2f2fb4a535d481550e4d2148b54e04434e3 | |
parent | e48f7b54a5028bb97f6b7db180de79c175be8ca2 [diff] |
Retrieve the res_stats based on a given list of nameserver addresses Similar to aosp/1136436, each independent lookup thread should get the stats based on its own nameserver address list rather than the list stored in NetConfig. With this change, plus aosp/1136436, it's able to populate nameserver addresses in random order to lookup threads without the worry of breaking the legacy stats stored in NetConfig. Bug: 137169582 Test: cd packages/modules/DnsResolver && atest Change-Id: I8d5c639326d2931bf7e5f5ae668e7aba830e00fb
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.