commit | c6393078da2339203f8acc8ac672c454ea36086b | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon May 25 21:55:27 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Tue May 26 11:03:08 2020 +0800 |
tree | 45454778e765ae87efdbd67c68fbfaca1fd933b3 | |
parent | 47a9e310e7826d010a6ddee7426a0568feaba049 [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 Change-Id: Ideda1115bb29cc5efc7cc6234746c4023570b646
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.