commit | 9e8cf8d5efea4c1a2d2a0320037a240f13ed97d3 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Oct 26 19:04:33 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Nov 09 17:10:42 2020 +0800 |
tree | 24b57feac928bb8f5da51dfff6d542f9083836e7 | |
parent | b764f73536fb624a625e3ef358ba8b85cec545e5 [diff] |
Initialize DnsTlsDispatcher instance only when needed Because the instance is used only when there are any validated DoT servers, it doesn't need to be initialized along with netd starting. Fix: 130686826 Test: cd packages/modules/DnsResolver && atest Change-Id: Ie58e105b40f881038c80ee37f2f901f46840f6d0
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.