commit | dd938dde80370f147c94f65f26a1a5a9a6beee41 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Mon Mar 09 14:35:37 2020 +0900 |
committer | Jiyong Park <jiyong@google.com> | Wed Mar 11 12:59:12 2020 +0900 |
tree | 76e894818a09d639195476c776ca7f9de3d48277 | |
parent | 6cb2be0732c5e620e8e14f9a61ea5362974b42db [diff] |
don't include liblog to APEXes liblog is a platform library that provides stable C API. There is no need to include the library, especialy by statically linking to it, in any APEX. It not only wastes the storage/ram, but also is incorrect because the socket interface to logd which is implemented in liblog is not guaranteed to be stable. Fixing this issue by converting static_libs: ["liblog"] into shared_libs: ["liblog"], in which case the dependency to the library is satisfied via the stub variant of the library. Bug: 151051671 Test: m Change-Id: I1573e2d7c3a79f27337dddf24c6e8d0c8189213f
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.