summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-03-12 13:35:50 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-03-12 14:40:14 +0000
commit5c8942bf393f239d9860cb663d1bc6bcbee368e8 (patch)
tree94690cbea4a25686e65ee652e38eb3afb83c4c69 /src/lib/eina
parentb98f8bdbe4296f902708d90db2bd2604219db34e (diff)
downloadefl-5c8942bf393f239d9860cb663d1bc6bcbee368e8.tar.gz
eina log bt - on by default always if unwind found
i'm tried of telling people how to turn this on. enough. on by default. if you dont want bt's and its just some helpful log output then just printf it or use WRN, INF and set log levels...
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_log.c2
-rw-r--r--src/lib/eina/meson.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index 81be34a1b2..7c66ee0b53 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -127,7 +127,7 @@ static int _abort_level_on_critical = EINA_LOG_LEVEL_CRITICAL;
# ifndef EINA_LOG_BACKTRACE_ENABLE
static int _backtrace_level = -1;
# else
-static int _backtrace_level = 1;
+static int _backtrace_level = EINA_LOG_LEVEL_ERR;
# endif
#endif
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index d3d30fcf43..003dc6b3b4 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -357,6 +357,7 @@ unwind = dependency('libunwind-generic', required: false)
if unwind.found()
config_h.set('HAVE_UNWIND', 1)
eina_deps += unwind
+ config_h.set('EINA_LOG_BACKTRACE_ENABLE', 1)
endif
#for the case that the iconv library is not part of libc but rather libiconv or smth. like that