commit | 98f19c292731bb965016b60d2eabc5157038ad76 | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Wed Nov 20 14:58:20 2019 +0800 |
committer | chenbruce <chenbruce@google.com> | Thu Dec 05 19:01:32 2019 +0800 |
tree | 5ef9d54cf7e3cc6a573564335128f1d019ad5b51 | |
parent | a68ad2fa6a18a53758f89395c6bddafcf439b0c6 [diff] |
Add resolv_callback_unit_test Add a CallbackTest to verify if DNS resolver does call callback funtions in netd. Currently, we verify tagSocketCallback() only. Bug: 142793760 Test: cd packages/modules/DnsResolver && atest Change-Id: I3f153685e2550b3c2d3674afdca4c0d33218f2e9
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.