summaryrefslogtreecommitdiffstats
path: root/libnetdata
diff options
context:
space:
mode:
authorChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-02-13 12:59:08 +0100
committerGitHub <noreply@github.com>2019-02-13 12:59:08 +0100
commite6b45e4f28fdbd57f8d75cd42dfa96472ed9e5dc (patch)
tree8ab8028406c2f6ba07e6c133d7bb4c9c6e2c0a9d /libnetdata
parent81ff6e7308efa897fc37b61460e697f9fa76e32e (diff)
Don't send host/port in to anonymous stats in fatal of STREAM_RECEIVER
STREAM_RECEIVER has host and port in the thread name. In fatal replace them with x so we don't send them in anonymous statistics (#5378)
Diffstat (limited to 'libnetdata')
-rw-r--r--libnetdata/log/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/log/log.c b/libnetdata/log/log.c
index 66a923f85e..4522304e62 100644
--- a/libnetdata/log/log.c
+++ b/libnetdata/log/log.c
@@ -406,7 +406,7 @@ void fatal_int( const char *file, const char *function, const unsigned long line
char action_data[70+1];
snprintfz(action_data, 70, "%04lu@%-10.10s:%-15.15s/%d", line, file, function, __errno);
char action_result[60+1];
- snprintfz(action_result, 60, "%s:%s",program_name, netdata_thread_tag());
+ snprintfz(action_result, 60, "%s:%s",program_name, strcmp(program_name,"STREAM_RECEIVER")?netdata_thread_tag():"[x]");
send_statistics("FATAL", action_result, action_data);
netdata_cleanup_and_exit(1);