commit | f6b640931965e1a2e635cac385a060b9970fc38e | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Sep 18 14:25:58 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Sep 23 17:04:22 2020 +0800 |
tree | aba8d40f44bcce09d4cc9d55df959df899c66502 | |
parent | 441d9378a249bdb241be223c16f57d3512a7cc75 [diff] |
Preserve original errno before calling close() errno might change after an error also happens in close(). errno from close() is what we are not interested in. Also refine some logging from LOG to PLOG. Bug: 149445907 Test: cd packages/modules/DnsResolver && mm Change-Id: I47ab70aa3ad937105cfdbcfd3e9ac49b895284ed
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.