diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-02-22 13:23:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 13:23:27 +0200 |
commit | 819025e9a755bec03f3d7e74152e9db16a008774 (patch) | |
tree | 0e262c22527a342728cff7cc0fed2c70c6e03d30 | |
parent | fa52ed52104ddc79661aabd29e69ff44de2a86de (diff) |
Do not use backtrace when sentry is enabled. (#17043)
-rw-r--r-- | src/libnetdata/log/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnetdata/log/log.c b/src/libnetdata/log/log.c index ab8c201972..e2a859ef9c 100644 --- a/src/libnetdata/log/log.c +++ b/src/libnetdata/log/log.c @@ -14,7 +14,7 @@ #include <machine/endian.h> #endif -#ifdef HAVE_BACKTRACE +#if !defined(ENABLE_SERNTRY) && defined(HAVE_BACKTRACE) #include <execinfo.h> #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; |