@cryptotaxi247 / netdata-1 / commits / 819025e9a

Do not use backtrace when sentry is enabled. (#17043)

vkalintiris committed Feb 22, 2024 at 13:23 UTC 819025e9a755bec03f3d7e74152e9db16a008774
1 file changed +2 -2
src/libnetdata/log/log.c
+2 -2
@@ -14,7 +14,7 @@
14 #include <machine/endian.h>
15 #endif
16
17 -#ifdef HAVE_BACKTRACE
17 +#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE)
18 #include <execinfo.h>
19 #endif
20
@@ -2334,7 +2334,7 @@ void netdata_logger_fatal( const char *file, const char *function, const unsigne
2334 char action_result[60+1];
2335 snprintfz(action_result, 60, "%s:%s", program_name, tag_to_send);
2336
2337 -#ifdef HAVE_BACKTRACE
2337 +#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE)
2338 int fd = nd_log.sources[NDLS_DAEMON].fd;
2339 if(fd == -1)
2340 fd = STDERR_FILENO;