commit | 863e39baef14ccd089d9bbd3c2f59645d38ac5ea | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Wed Aug 28 15:46:58 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Wed Sep 11 18:44:00 2019 +0900 |
tree | 013a47fe9aa231746957f56e47c4e463077c3d83 | |
parent | f1e707cf47f9dc2edc98f7e57460eefde4922a5f [diff] |
Actually clear all DNS stats on resolver changes Previously, we were clearing the stats for the first resolver 4 times in a loop :-) Also: - Factor revision_id bumping into res_cache_clear_stats_locked() because it must be done every time. - Delete redundant stats clearing in free_nameservers_locked() Test: atest (but tests don't actually detect this bug) Change-Id: I770a99fd6666bb269bc4c7355e06ca24095ed6ee
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.