commit | ac6a80711d60f8dec049197dcabe6ba7104b615a | [log] [tgz] |
---|---|---|
author | Ruchir Rastogi <ruchirr@google.com> | Wed Feb 26 10:36:18 2020 -0800 |
committer | Tej Singh <singhtejinder@google.com> | Mon Jul 06 20:27:07 2020 -0700 |
tree | 27a46fd004c5d70fc1b1cd0e4ab5ed317c9703ca | |
parent | 3c07ec67d152e200ad708e12db97800430378572 [diff] |
Allow libstatssocket to be dynamically loaded This cl was submitted to aosp/internal master in march, but was mistakenly not cherry picked into rvc-dev. This change is needed for libstatspush_compat to properly function on R devices. Test: m com.android.resolv Test: verified netd/libnetd_resolv dlopen libstatssocket successfully Test: adb shell cmd stats print-stats shows atom 116 is being logged Bug: 160617623 Bug: 149229317 Change-Id: I55740632a4aae889505231efeeebe2809a659a7a Merged-In: I55740632a4aae889505231efeeebe2809a659a7a
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.