commit | 78f82d67354975a794b6477c45fe6bc6fb9a1931 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu Feb 10 20:38:43 2022 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Feb 23 15:47:10 2022 +0800 |
tree | e9dfbe8f5a898598d4230be8242ac89f92e0cec9 | |
parent | dfbcdde55ae5d92e389bf2f7fceb7d29f30c3cdc [diff] |
DoH: Use trace_id() in logging to differentiate between connections As multiple connections on the same netId can exist at the same time, use trace_id() to differentiate between them. Also, upgrade timer logging message from trace level to debug level. Bug: 215818810 Test: built dnsresolver pass Change-Id: Idacb8310c9b1b66551abf8b12216b1be2db1705e
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.