commit | bb8ccef16a2d8b76084463c426daa515005c137b | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Jan 18 14:56:46 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Jan 18 15:04:35 2021 +0800 |
tree | c105dc9f556e5301548de6a1ca47506afcbac094 | |
parent | 34c67cbd7801abcae091d5e85ebabe9d3077bee5 [diff] |
Fix flaky ResolverTest.DnsServerSelection due to flag reset The test takes around 5 seconds. If the flag is reset in the middle of the test, the test will be broken. This change ensures the flag is set right before the test network is created. Bug: 177695274 Test: ResolverTest.DnsServerSelection passed Change-Id: I69ec2edd2b43be3cc4cc535c0bc0a589838e65c8
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.