commit | 39df0b13bb000abfbc9fbb01edacd54f4fc421c9 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Oct 31 16:12:23 2019 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Dec 11 22:31:45 2019 +0800 |
tree | 5c46857705be0841cc4b895cfa8e3994a2cae8f8 | |
parent | 939e3690aeb0142679678313a74bf024cfba7129 [diff] |
Add unit tests for DnsQueryLog Ensure the basic functions of DnsQueryLog work as expected. Bug: 139040977 Test: cd packages/modules/DnsResolver && atest Change-Id: I6b318beeed7ff5942e8d08474c354e48ebdac936
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.