commit | 008122d1cce3491c4fc991854ea7828447d94c6c | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue Mar 08 17:23:11 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Mar 08 17:35:11 2022 +0800 |
tree | 3cfd0c1358f2d65ae4fbcf762ca735b435f33d0c | |
parent | b537dfdd39e6a57c73db121849dd13ffd2590f54 [diff] |
Don't log if resolv_gethostby{name,addr} return no error To avoid log spam, log their return value if the value is an error. The following logs won't be printed. GetHostByNameHandler::run: result: Success GetHostByAddrHandler::run: result: Success Fix: 223115382 Test: adb shell ping dns.google, then check the log Change-Id: I180936a2d66a47142726054f001281a7ecd56f00
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.