commit | edec3e162914079654bc04b0e48daa8e9002e31f | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Sun Jun 27 23:25:07 2021 +0800 |
committer | chenbruce <chenbruce@google.com> | Fri Jul 02 11:18:33 2021 +0800 |
tree | aab7fae2504e960911207ae0c91d6d2442bef4d9 | |
parent | 72a646c242da711f77b9ebc02c12773b437081e9 [diff] |
Add Mdns statistics log When developers run "dumpsys dnsresolver", Mdns statistics will show the information in the log if the Mdns queries happened. Bug: 140857615 Test: cd packages/modules/DnsResolver && atest Change-Id: Iec0657d417ddf329590f1fc0a599497aaf45639b
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.