commit | 766feae1185bac8cd381f52b4873f0987ff2bf17 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Wed Oct 30 15:13:44 2019 +0800 |
committer | Ken Chen <cken@google.com> | Thu Nov 21 00:28:31 2019 +0800 |
tree | 1db46e350ba4732eceef4e1dcfc00f26d7803eb8 | |
parent | c7320aa3b0de29767db420e3cc09956a605bc8f7 [diff] |
Add an API to flush cache on designated network Flush entire cache on a specified network. The API acquires lock before manipulate cache. It's thread-safe API. Bug: 139646101 Test: atest resolv_cache_unit_test.cpp#FlushCache Test: atest resolv_integration_test.cpp#FlushNetworkCache Change-Id: I4ea34a256013468ceac21ce5067d6a493d8631f8
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.