commit | 03e4903f3759ff6a5e1060bcb04e3f9e7a23e31d | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Sep 09 22:21:09 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Sep 10 17:57:08 2021 +0800 |
tree | 8438a57b59af605965bed104621d9e17c54fcd95 | |
parent | f34e87cd436a46eb0f79e190754679b94baf60cc [diff] |
Report private DNS protocols in onPrivateDnsValidationEvent PrivateDnsDohTest.QueryFailover fails in waiting for the second onPrivateDnsValidationEvent if DoT validation result and DoH validation result are reported at the same time. To fix the flaky test, this change makes the validation results distinguishable by private DNS protocols. Bug: 198111329 Test: PrivateDnsDohTest.QueryFailover 200 times passed on cuttlefish Test: PrivateDnsDohTest.ValidationFail 500 times passed on cuttlefish Change-Id: I8649b21bff176c6f2a1158f04812c8c8e96ad7d9
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.