commit | 8d9da4ae6d04716590b6db112331d79a0e288e43 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Nov 09 17:09:14 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Nov 18 17:49:10 2020 +0800 |
tree | 135b833373eb6be201b7a16c25e46df71bd05af2 | |
parent | 5e1b99187ecb5b6db507320475fd0464d2a24d83 [diff] |
Decouple PrivateDnsConfiguration from resolv_cache.h This change is to simplify writting tests for PrivateDnsConfiguration. Also add a network ID check before starting any resolver configuration. Bug: 79727473 Test: cd packages/modules/DnsResolver && atest Change-Id: Icf0040c67aafe5318a61fc3d2b7158d8f0384367
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.