commit | 816b6a7741dd6eb3e8c9c0fda56cfb33b8a60405 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Fri May 15 07:53:52 2020 +0000 |
committer | Luke Huang <huangluke@google.com> | Mon May 18 02:45:52 2020 +0000 |
tree | b9813be6823c76ed4d1f37d75d51830f45dc0ce0 | |
parent | aff678e0ca7ade9ad7eaaa1fdc689501e2764ec4 [diff] |
Record system call relevant errors correctly As we have a specific field for errno in our stats proto now, add the code to get it work accordingly. Also refine the errno assignment. Bug: 150662964 Bug: 151166599 Test: atest Merged-In: I781513e385e1cf2a77d1d052c4a450a94978e242 Change-Id: Ib96ebcc776860f9b067c84bda539312302dea522 (cherry picked from commit c2df16e7894616b5ca4f1f89764f9422cb313aa6)
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.