commit | 6aa318e9ab4306b0ecdf580c3aa3bfde8d365d1b | [log] [tgz] |
---|---|---|
author | Frank Li <lifr@google.com> | Wed Mar 25 09:11:22 2020 +0000 |
committer | Frank Li <lifr@google.com> | Mon Mar 30 09:41:26 2020 +0000 |
tree | c48551eb944e46a2789726664d6d34c251493286 | |
parent | bad95cf027e1d955f98ffaa3687e9ea69f433bcd [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 Merged-In: Icf24178fd38ae494ee505d38c32d6b1f3a135da3 Change-Id: I6ea9537fa3f57f143e2974843ab65e3e3afcc24e (cherry picked from commit 507a1fd63afb48a46a9afcaa53f4bd7f7258a4b1)
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.