commit | cbb09d0d708e49b1b590ee87cba23fd93e3d60ae | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Thu Feb 25 13:26:55 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Thu Feb 25 17:12:35 2021 +0900 |
tree | 8de03d853915c678cd8176da0cdfb9aeca3f569a | |
parent | fd4ac10ea84d53689ce02dcf154b68163a75c307 [diff] |
Fix binder log tests This is a follow-up of aosp/1579804, which removed "(null)" from output logs. This change does the same tidy-up with android::base::StringReplace() which can replace every occurrence. This is more future-proof in case there's more than one nullable arguments. Bug: n/a Test: atest DnsResolverBinderTest Change-Id: Iee2d0ef4717c5ff69ab469997ea9c30d0437544a
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.