commit | 8c45bfb848cd6da0258093b6bd37cf4745b1df0a | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Fri May 29 06:10:31 2020 +0000 |
committer | Luke Huang <huangluke@google.com> | Fri May 29 16:45:58 2020 +0000 |
tree | 761f17f3d19cb3fa3db215446eb572d7a6921421 | |
parent | b9a10a82912cb33f05d44f0d0d2744edf5bc2d25 [diff] |
Skip the legacy stats recording if DNS requests are denied by network policy In order to prevent the false INTERNAL_ERROR event which is caused by network policy fill up the legacy DNS stats, skip adding new legacy DNS stats when we got errno == EPERM. Bug: 151166599 Test: atest Merged-In: I4c1d2a5c9f43650a5346a5ee0bb88eb36f850096 Change-Id: I5486638556c0a8fdfabbc37a1b29ed2b42f9b399 (cherry picked from commit 3991974b8cf5671b49f39531a6deb9f6fe81ebf0)
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.