commit | 0b564a2b3d7e54552dc042d5d5081a78dc70e4aa | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Mar 19 11:33:59 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Thu Mar 19 07:32:09 2020 +0000 |
tree | ca39ac26fbd1d1f7c209393838a64dd5d11cc7d0 | |
parent | 361bf8b3e0465cc8b87b8a6960b73b1cb9f202d1 [diff] |
Refine the library linking for the tests of DnsResolver Some MTS tests failed due to libbase becoming incompatible between Q and R. Refine the linking for our tests to fix the problem and prevent similar issues. 1. liblog has stable C APIs so just have it linked shared. 2. Statically link all libraries as we can. Bug: 151122313 Test: atest Change-Id: I56b6774b09cd4027db268ba74b670be01e88b2eb
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.