@cryptotaxi247 / netdata-1 / commits / 92cdd3764

Restrict GA message (#8161)

* restrict_stream_message: Parse message before to send This commit changes the default tag that was sent to GA * Ignore thread problem We are believing that there is a thread problem that we need to dig, while we do not do there, we are only changing the comparison * restrict_stream_message: Remove tabs This commit removes the unecessary tab around the functions changed

thiagoftsm committed Feb 24, 2020 at 20:56 UTC 92cdd3764990e642069fda6785f43f3bd53f1863
1 file changed +5 -4
libnetdata/log/log.c
+5 -4
@@ -820,10 +820,11 @@ void fatal_int( const char *file, const char *function, const unsigned long line
820 log_unlock();
821
822 char action_data[70+1];
823 - snprintfz(action_data, 70, "%04lu@%-10.10s:%-15.15s/%d", line, file, function, __errno);
824 - char action_result[60+1];
825 - snprintfz(action_result, 60, "%s:%s",program_name, strcmp(program_name,"STREAM_RECEIVER")?netdata_thread_tag():"[x]");
826 - send_statistics("FATAL", action_result, action_data);
823 + snprintfz(action_data, 70, "%04lu@%-10.10s:%-15.15s/%d", line, file, function, __errno);
824 + char action_result[60+1];
825 +
826 + snprintfz(action_result, 60, "%s:%s", program_name, strncmp(netdata_thread_tag(), "STREAM_RECEIVER", strlen("STREAM_RECEIVER"))?netdata_thread_tag():"[x]");
827 + send_statistics("FATAL", action_result, action_data);
828
829 netdata_cleanup_and_exit(1);
830 }