From 819025e9a755bec03f3d7e74152e9db16a008774 Mon Sep 17 00:00:00 2001 From: vkalintiris Date: Thu, 22 Feb 2024 13:23:27 +0200 Subject: [PATCH] Do not use backtrace when sentry is enabled. (#17043) --- src/libnetdata/log/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libnetdata/log/log.c b/src/libnetdata/log/log.c index ab8c20197272ef..e2a859ef9cc048 100644 --- a/src/libnetdata/log/log.c +++ b/src/libnetdata/log/log.c @@ -14,7 +14,7 @@ #include #endif -#ifdef HAVE_BACKTRACE +#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE) #include #endif @@ -2334,7 +2334,7 @@ void netdata_logger_fatal( const char *file, const char *function, const unsigne char action_result[60+1]; snprintfz(action_result, 60, "%s:%s", program_name, tag_to_send); -#ifdef HAVE_BACKTRACE +#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE) int fd = nd_log.sources[NDLS_DAEMON].fd; if(fd == -1) fd = STDERR_FILENO;