summaryrefslogtreecommitdiffstats
path: root/libnetdata
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2020-02-24 20:56:05 +0000
committerGitHub <noreply@github.com>2020-02-24 20:56:05 +0000
commit92cdd3764990e642069fda6785f43f3bd53f1863 (patch)
treea39ac6ada1d8655110ff4d0036c7a1ab20e6ec27 /libnetdata
parent4670aff395183b5444eb6b76edd4b160b8ad65cd (diff)
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
Diffstat (limited to 'libnetdata')
-rw-r--r--libnetdata/log/log.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libnetdata/log/log.c b/libnetdata/log/log.c
index 7849aedc4a..52ea932aa3 100644
--- a/libnetdata/log/log.c
+++ b/libnetdata/log/log.c
@@ -820,10 +820,11 @@ void fatal_int( const char *file, const char *function, const unsigned long line
log_unlock();
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, strcmp(program_name,"STREAM_RECEIVER")?netdata_thread_tag():"[x]");
- send_statistics("FATAL", action_result, action_data);
+ 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, strncmp(netdata_thread_tag(), "STREAM_RECEIVER", strlen("STREAM_RECEIVER"))?netdata_thread_tag():"[x]");
+ send_statistics("FATAL", action_result, action_data);
netdata_cleanup_and_exit(1);
}