summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-05-12 19:00:57 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-05-12 19:06:00 +0900
commit65b53f4a3737196a9caf100e06ccebfa0aed8e87 (patch)
tree78b5485168d4441046e0ef7aa9586ed357834aec /src/lib/eina
parent55eb75ad86d01af7840b8f9080670d34eb884749 (diff)
Eina log: Enable backtrace only for CRI and ERR by default
Using EINA_LOG_LEVEL=4 for standard debugging has now become absolutely horrible (and slow!). Backtraces may make sense in case of ERR and CRI messages, but are just pollution for other levels. WRN could be argued over but the old env variable is still there so just use it if you want backtraces: $ export EINA_LOG_BACKTRACE=2
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index 5f458f01d0..a9eb9aaa97 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -121,7 +121,7 @@ static Eina_Bool _disable_timing = EINA_TRUE;
121static int _abort_level_on_critical = EINA_LOG_LEVEL_CRITICAL; 121static int _abort_level_on_critical = EINA_LOG_LEVEL_CRITICAL;
122 122
123#ifdef EINA_LOG_BACKTRACE 123#ifdef EINA_LOG_BACKTRACE
124static int _backtrace_level = 999; 124static int _backtrace_level = 1; // CRI & ERR by default
125#endif 125#endif
126 126
127static Eina_Bool _threads_enabled = EINA_FALSE; 127static Eina_Bool _threads_enabled = EINA_FALSE;