commit | 8ab448ff3d9fc09ff180e7ef98b767dfcb18085d | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed May 27 05:37:45 2020 +0000 |
committer | Mike Yu <yumike@google.com> | Thu May 28 08:21:47 2020 +0000 |
tree | 1d7bd20c3121b3f5a2f5d3e140f3bcf5c3bdd8f5 | |
parent | f871e4f5a931e2ba18e92d95c62f5bcd6d580a73 [diff] |
Log UID and PID when fail to send messages to dnsproxyd This change can facilitate debugging to know which process is blocked in reading the result from /dev/socket/dnsproxyd. Bug: 149659779 Test: m com.android.resolv Merged-In: Ideda1115bb29cc5efc7cc6234746c4023570b646 Change-Id: Ic16cc74b5d3ee72f4a65d3d20491e5014f8455b7 (cherry picked from commit a7200274ee442f22e8be3ed8fb1a53d5b9834fda)
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.