commit | e0168482532d9258ca695ba36cdd1808e35f6df9 | [log] [tgz] |
---|---|---|
author | Chiachang Wang <chiachangwang@google.com> | Wed Mar 09 14:24:32 2022 +0800 |
committer | Chiachang Wang <chiachangwang@google.com> | Thu Mar 10 08:31:34 2022 +0000 |
tree | 1dfb059799d63a5cf64f1a61de33bd63d008ed06 | |
parent | 166df3778e11009513d1ad60bdc362527883068d [diff] |
Logging life cycle of each test It's helpful for debugging each test to observe the behavior between each test. Sample log: I resolv_private_dns_test: started: PrivateDnsDohTest#QueryFailover : I resolv_private_dns_test: finished: PrivateDnsDohTest#QueryFailover Test: atest resolv_integration_test Bug: 223731710 Change-Id: I0335baa1762d35355d20bdf7a707b590f8a95c0c
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.