commit | 99b8dc77255778d5192fed0754edb72c7a107b7b | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Nov 22 17:45:31 2019 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Dec 06 02:34:51 2019 +0000 |
tree | 8418ff9658043762e1ce3c130d48aa4e984930a9 | |
parent | cb2bb7c6bc203fddffb746b574ce3013e7a52c60 [diff] |
Fix PDM_UNKNOWN in private_dns_modes When a lookup can be found in the cache, the code doesn't go in res_tls_send() and then misses to set private_dns_modes. To fix it, set the value in the beginning of the lookup threads to ensure it is set at least once. Bug: 144881031 Test: m com.android.resolv Change-Id: Id3a3383403a381c5f73f7214ce1d768a98bb2eb5
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.