commit | ae5fe72c344017e4fecfef661ba4391dfde89e97 | [log] [tgz] |
---|---|---|
author | waynema <waynema@google.com> | Fri Oct 01 14:56:34 2021 +0800 |
committer | waynema <waynema@google.com> | Fri Oct 01 23:10:46 2021 +0800 |
tree | af22ad071d243baf07c6ab15d435e8c7737cf4fb | |
parent | 10eed9da6e8470205a517e732b010d4188e1173a [diff] |
Cleanup DoH statistics when DoH is not supported in the private DNS mode. Test steps: a. Default enable strict mode. b. Turn on WiFi and Mobile data. c. Swtich private DNS mode from strict mode to automatic mode. d. Expect to see DoH statistics only on WiFi. e. Switch private DNS mode from automatic mode to off mode. f. Expect to see no DoH statistics showing up on both WiFi and Mobile data. Tests will be done in a follow-up CL. Bug: 201735918 Test: Check output in dumpsys dnsresolver Change-Id: Ie4e67c3967778ada480cb2b5f9222cde5d2c705e
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.