0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-24 13:14:11 +00:00

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 ()
This commit is contained in:
Chris Akritidis 2019-02-13 12:59:08 +01:00 committed by GitHub
parent 81ff6e7308
commit e6b45e4f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);