diff options
author | Wei Wang | 2017-01-12 17:32:26 -0600 |
---|---|---|
committer | Wei Wang | 2017-01-13 00:18:46 -0600 |
commit | 677ba31db20d214ffb83e0102a9b78d811b5bf68 (patch) | |
tree | a0c4c32c78249ac3bd1709eb133827585d5cfaac /libcutils/klog.cpp | |
parent | dd9fa24091e28490eddeea1583f47cdc968b57f6 (diff) | |
download | platform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.tar.gz platform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.tar.xz platform-system-core-677ba31db20d214ffb83e0102a9b78d811b5bf68.zip |
libcutils: change klog_level to KLOG_INFO_LEVEL
Some of Android componets e.g. init have migrated to use base/logging to get rid
of klog utilities. However, without explicit initilization, the default
klog_level is set to 3 which masks the logwrap output.
This patch sets default klog_level to KLOG_INFO_LEVEL to make
android_fork_execvp_ext log available.
Bug: 34256270
Test: manual
Change-Id: Ibe74707a92c954053cd0e6828a984fbd72b4acae
Diffstat (limited to 'libcutils/klog.cpp')
-rw-r--r-- | libcutils/klog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/klog.cpp b/libcutils/klog.cpp index 4bad28a57..15adf6baf 100644 --- a/libcutils/klog.cpp +++ b/libcutils/klog.cpp | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <cutils/android_get_control_file.h> | 27 | #include <cutils/android_get_control_file.h> |
28 | #include <cutils/klog.h> | 28 | #include <cutils/klog.h> |
29 | 29 | ||
30 | static int klog_level = KLOG_DEFAULT_LEVEL; | 30 | static int klog_level = KLOG_INFO_LEVEL; |
31 | 31 | ||
32 | int klog_get_level(void) { | 32 | int klog_get_level(void) { |
33 | return klog_level; | 33 | return klog_level; |