commit | a86a9708fe840fbb80d106ee29abf9291d4d92dc | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Dec 21 19:30:25 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Tue Dec 22 16:36:54 2020 +0800 |
tree | f2364460ccef5ec2c12f3985e460ab5159b19d63 | |
parent | 7b2978e7c176caa44c51c027421433eed2ee6a24 [diff] |
Add LockedRingBuffer This is a refactor for DnsQueryLog. No functional behavior change. Bug: 79727473 Test: resolv_unit_test passed Test: adb shell dumpsys dnsresolver querylog Change-Id: Id9fc9b7868dab5861feda5ab2cb04759e7a34846
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.