commit | 6024824b2acc067cf42ea48e4b257da84614dc96 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Jul 29 16:45:26 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Aug 03 02:32:03 2020 +0000 |
tree | 6504dcdfcb333e77810ba4bcc739b8ce729d5ec0 | |
parent | 914656b6f40ba1f8892cccbd91292371cc8dbb4b [diff] |
Clean up gPrivateDnsConfiguration Use singleton to get an instance of PrivateDnsConfiguration. The lifetime of the instance is almost aligned with the DnsResolver service. Bug: 130686826 Test: cd packages/modules/DnsResolver && atest Change-Id: Id71f90c7d0508eacd1b20db42408a78d9ea1e03a
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.