commit | 3d5130d436c49db762216302afeff989b225c04b | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Dec 21 17:57:18 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Dec 22 16:37:01 2020 +0800 |
tree | a8e8aab2f97a8267ce8657faf95782581f252aca | |
parent | a86a9708fe840fbb80d106ee29abf9291d4d92dc [diff] |
Logging private DNS validation state Log the validation state whenever it's changed, and output the result to dumpsys. Bug: 79727473 Test: cd packages/modules/DnsResolver && atest Change-Id: I3afe28f546562228e1a0dfc2a8a55de5b5f08a7e
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.