commit | 76620646019a105248207c307abb217423777545 | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Tue Jun 15 18:39:27 2021 +0800 |
committer | chenbruce <chenbruce@google.com> | Wed Jun 16 10:52:29 2021 +0800 |
tree | b52f339fe4842f63cf044fe0fb48b788a6289d5c | |
parent | cc9bbc046aabbfde2ab2d74e7f65e607b65a6f99 [diff] |
Cleanup: dump_error() Don't need to pass the socket size, it can be computed cheaply with sockaddrSize(). Bug: 140857615 Test: cd packages/modules/DnsResolver && atest Change-Id: I4ef63f3febb058091087834a6a26f8d84b19843d
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.