commit | e84604d6b59360e8df3077a9c58a23c58b95c1c8 | [log] [tgz] |
---|---|---|
author | paulhu <paulhu@google.com> | Mon Feb 08 13:59:01 2021 +0800 |
committer | paulhu <paulhu@google.com> | Tue Feb 09 00:10:11 2021 +0800 |
tree | b69cb171bf72b9364b1a93832129384bf2f94a6e | |
parent | 1a6cb4936d62ca3adc434cb1319ffd1352bbacaa [diff] |
Fix failed register null listener tests aosp/1574060 changed the binder_to_string format which would make register null listener tests failed on Android S. Because the log patterns are different between dumpsys and the tests. However, these tests must pass on Android Q/R which are still using the old format. Thus, to be compatible from all version, just remove the "(null)" argument from output logs. Bug: 179474903 Test: atest DnsResolverBinderTest on R & S build. Change-Id: I1f1c93c96c9e5c51d55cc378a04aa8ebb0526e10
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.