summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Wang2017-01-12 17:32:26 -0600
committerWei Wang2017-01-13 00:18:46 -0600
commit677ba31db20d214ffb83e0102a9b78d811b5bf68 (patch)
treea0c4c32c78249ac3bd1709eb133827585d5cfaac /libcutils/klog.cpp
parentdd9fa24091e28490eddeea1583f47cdc968b57f6 (diff)
downloadplatform-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.cpp2
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
30static int klog_level = KLOG_DEFAULT_LEVEL; 30static int klog_level = KLOG_INFO_LEVEL;
31 31
32int klog_get_level(void) { 32int klog_get_level(void) {
33 return klog_level; 33 return klog_level;