commit | d9018b8e2fa62d8b3fbd2d70f6ddb3fa5d6ea871 | [log] [tgz] |
---|---|---|
author | lifr <lifr@google.com> | Tue Mar 17 21:10:55 2020 +0800 |
committer | lifr <lifr@google.com> | Thu Mar 19 11:29:08 2020 +0800 |
tree | 1b6e3453297590926271bb1c920205e9e2fb02ba | |
parent | 24f8df3e9385ab6e9568d4d753edac4b87ee1bc4 [diff] |
Add one metrics field to record the cause of DNS query internal error The internal Error of DNS query have more than 100 reasons. Record each internal error reason for us to do further analysis. Bug: 150335075 Test: Manual test with statsd_testdrive Change-Id: Icf24178fd38ae494ee505d38c32d6b1f3a135da3
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.