summaryrefslogtreecommitdiff
path: root/src
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
parentb98f8bdbe4296f902708d90db2bd2604219db34e (diff)
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')
-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;
127# ifndef EINA_LOG_BACKTRACE_ENABLE 127# ifndef EINA_LOG_BACKTRACE_ENABLE
128static int _backtrace_level = -1; 128static int _backtrace_level = -1;
129# else 129# else
130static int _backtrace_level = 1; 130static int _backtrace_level = EINA_LOG_LEVEL_ERR;
131# endif 131# endif
132#endif 132#endif
133 133
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)
357if unwind.found() 357if unwind.found()
358 config_h.set('HAVE_UNWIND', 1) 358 config_h.set('HAVE_UNWIND', 1)
359 eina_deps += unwind 359 eina_deps += unwind
360 config_h.set('EINA_LOG_BACKTRACE_ENABLE', 1)
360endif 361endif
361 362
362#for the case that the iconv library is not part of libc but rather libiconv or smth. like that 363#for the case that the iconv library is not part of libc but rather libiconv or smth. like that