commit | ad96ef83d396ddccfe25b9ec076587f66f82178c | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Sat Feb 20 18:35:14 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Thu May 13 11:25:11 2021 +0800 |
tree | eedfc9ac018efc1e349fc8f70e5dd00c0b9c36be | |
parent | 05bf348e447875dca609dda0f89578889bb0e767 [diff] |
Change most of PrivateDnsConfiguration methods to use ServerIdentity Passing DnsTlsServer might be confusing because it's not straightforward to know if a DnsTlsServer is a copy or onwed by PrivateDnsConfiguration. This CL changes most of the methods to use ServerIdentity. The methods can then get the corresponding DnsTlsServer by the new added method getPrivateDns(). Bug: 186177613 Test: cd packages/modules/DnsResolver && atest Change-Id: Ied4a4ee026862cd2c596586499cbfa7646eaaf2a
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.