commit | 373b7f6235ef82380fd2a6bddcacf39cc14316c5 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Oct 05 16:13:18 2021 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Thu Oct 07 12:36:17 2021 -0700 |
tree | ff9543705b90280a4bd49c27bb826c4ed34384fb | |
parent | 6b17842f445b68b075f247b841285a36c502adda [diff] |
DoH: Factor out BootTime * Move `BootTime` into the `boot_time` module * Change `elapsed()` to match `Instant` API * Add timeout + sleep functions, relative to `CLOCK_BOOTTIME` * Change everywhere in DoH to use `boot_time` instead of `time` * Add tests for boot_time module BYPASS_INCLUSIVE_LANGUAGE_REASON="man is referring to the unix manual command, not a person" Bug: 202081046 Bug: 200694560 Change-Id: I719965ff75abb0223ba20829ca0a3a4be1d07f40
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.