commit | a893556b4e2e9c3128e0384357487310acb48204 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Apr 30 11:26:41 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Fri May 01 16:47:40 2020 +0800 |
tree | 2feb271120d25e7ef23076b44971af461c936022 | |
parent | 11df744d25609531e817d1940d177723d5131f6c [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 Change-Id: Icc863b9a9d7b4cefca4dce23933c705a51299095
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.