commit | f696ba345dc1d323459d55aea88fed583a581232 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Feb 14 13:36:33 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Feb 23 15:47:17 2022 +0800 |
tree | 0cc3d6d6bb9afd2023d134c11f616a60471a5943 | |
parent | 78f82d67354975a794b6477c45fe6bc6fb9a1931 [diff] |
DoH: Don't call handle_draining() more than once Calling handle_draining() is effective only for the first time. Subsequent calls are not necessary because all of the relative channels are already closed. Bug: 215818810 Test: cd packages/modules/DnsResolver && atest Test: checked the log that "draining on network" is printed only once Change-Id: Ifae32daff39fc86f40550005f35f544b449dd37e
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.