commit | d3c579ca6f1bbd371028b2faf7d8e7ab96d2b9cb | [log] [tgz] |
---|---|---|
author | Bruce Chen <chenbruce@google.com> | Tue Jun 09 04:21:34 2020 +0000 |
committer | Bruce Chen <chenbruce@google.com> | Tue Jun 09 04:38:17 2020 +0000 |
tree | 90260919823b9776d7e04e3d04b6b97709bc6c15 | |
parent | 8c45bfb848cd6da0258093b6bd37cf4745b1df0a [diff] |
Add GetResolverStats to cache unit test This unit test is for resolv_cache_get_resolver_stats(). Bug: 137169582 Test: cd packages/modules/DnsResolver && atest Merged-In: I256910de5410a0df1ca3975c8eb62c50b338ed49 Change-Id: I13c7e2ff026104a1d0e4184e8672142ad9d76f05 (cherry picked from commit e8179b01785020fe83ef0c53523cedc90b5ecbf0)
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.