Skip to content

Commit

Permalink
Do not use backtrace when sentry is enabled. (netdata#17043)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalintiris authored Feb 22, 2024
1 parent fa52ed5 commit 819025e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libnetdata/log/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <machine/endian.h>
#endif

#ifdef HAVE_BACKTRACE
#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE)
#include <execinfo.h>
#endif

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 819025e

Please sign in to comment.