commit | b6402aea0a93a69438dab624df1eed11beaca183 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Mar 19 10:58:14 2020 +0000 |
committer | Luke Huang <huangluke@google.com> | Thu Mar 19 11:54:56 2020 +0000 |
tree | f50d8e3f2eec334227aa1b2fafa4283b49bab8f6 | |
parent | 19a291bb57d222ebd0d9b5cfc7fc7a0c15596bdb [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 Merged-In: I56b6774b09cd4027db268ba74b670be01e88b2eb Change-Id: I86f9ec4db57c2164d48ec8ec272fe47af322294c (cherry picked from commit b838c3b6f7c11adaaaec41153bd35f1990de2810)
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.