commit | 29505cb6d3d1a69019d115bb13d7751553d0c034 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Sep 24 14:25:18 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Sep 24 14:39:00 2021 +0800 |
tree | aa84d592ca0738f313bf25c0c7da9d375de0aea1 | |
parent | b39686b443f5f9b20e1b4a3358f7a5b8749fca63 [diff] |
Slightly improve isDoHEnabled() DnsResolver doesn't need to check SDK level more than once. Bug: 200763585 Test: built dnsresolver passed Change-Id: I7e113a9b4d941dbe278fbeaa84953ac12a778de0
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.