commit | 23d55192030561872a7f24ed558dbfd7ede9427e | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Apr 16 11:47:30 2020 +0800 |
committer | Luke Huang <huangluke@google.com> | Fri May 15 04:02:50 2020 +0000 |
tree | 6be2e60e5e3de7df9fc1f9dde349cb3cd0c8de60 | |
parent | 4701ca646114a0ef3dfbf035fb5459f27a5c583e [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 Test: atest Change-Id: I781513e385e1cf2a77d1d052c4a450a94978e242
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.