commit | 53d3eb2a49e34ecb6015f92f4055517d52a77c2b | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Mon Jul 19 15:08:56 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Tue Jul 20 01:03:11 2021 +0000 |
tree | fcfe49e74d7f0aad1e3abb33cef791851439763d | |
parent | abd545bfaebeb669966e11d2c480de3f55ad691b [diff] |
Adjust the log mechanism for DoH and some minor changes. 1. Init the log level by device build. 2. Add TODO comment for aosp/1769446. 3. Higher the log level for sensitive log msgs. 4. Sort the input servers before processing it with DoH. Test: atest Bug: 193850030 Bug: 155855709 Change-Id: I67932699275354e7ebdb1636d7c8bf977d43cfbd
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.