commit | b8012f7861822fa272b81345e3393151a480121d | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Fri May 01 11:09:40 2020 +0000 |
committer | Luke Huang <huangluke@google.com> | Fri May 01 12:02:51 2020 +0000 |
tree | d41b662091547622b631b69b2a90d377ba9d0da9 | |
parent | 328324efd29fd54a61c4333df03af986e4515a9d [diff] |
Fix default value problem of DnsResolver Experiments#getFlag() The default value of Experiments::getFlag() doesn't actually work because Experiments::updateInternal() wil also initial the property as 0. Use INT_MIN as the default value to represent the flag can't be found. Bug: 155042187 Test: atest Merged-In: Icc863b9a9d7b4cefca4dce23933c705a51299095 Change-Id: I125a6eeecee4995640d276c06b7d9f48108e33f1 (cherry picked from commit 2c1e86ed81310563d82b742ceb349856b6bc6b2a)
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.