commit | b05b34d7b73d896c45c9eeb16db0317adad60920 | [log] [tgz] |
---|---|---|
author | martinwu <martinwu@google.com> | Wed Dec 15 15:59:09 2021 +0800 |
committer | Martin Wu <martinwu@google.com> | Thu Dec 16 04:40:03 2021 +0000 |
tree | 4f0de3c1fd299dc535c8a8de44e132a02974f20d | |
parent | 1f65175725f4bd696906ca371d955cae5ef14c99 [diff] |
Fix DnsResolver log print When mDNS queries/send_dg() are timed out, the log prints out "E resolv : send_mdns: 1" which is not meaningful. This commit changes the log print to "E resolv : send_mdns: timeout" to provide an obvious message Bug: 209492138 Test: checked the DnsResolver log Change-Id: I07de9c4d2f10139debc3c9e76e625af616b9e076
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.