commit | ecc52827de6324fa2ae829ad96c1ce1c50d97d29 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Feb 14 14:36:46 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Thu Feb 20 17:31:06 2020 +0800 |
tree | 55634f44b1054e8a10d26ecf821400d26eed0f3d | |
parent | 6407ae47fcaf8e00ac32f7fd9e65860952eeb3aa [diff] |
Remove nscount in ResState and NetConfig The number of nameservers can be derived from std::vector::size(). It doesn't need a variable to store the value. Test: cd packages/modules/DnsResolver && atest Change-Id: Ifc2e1401b1d081595a00b60fbaf6dd96c3d44a71
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.