From: Florian Forster Date: Tue, 27 Mar 2007 14:31:51 +0000 (+0200) Subject: {processes,unixsock} plugin: Remove annoying debug messages. X-Git-Tag: collectd-4.0.0~130 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a795179f29ec002bb2048635aef7642c994a911c;p=collectd.git {processes,unixsock} plugin: Remove annoying debug messages. --- diff --git a/src/processes.c b/src/processes.c index 7d918d4f..5fd12212 100644 --- a/src/processes.c +++ b/src/processes.c @@ -622,14 +622,11 @@ int ps_read_process (int pid, procstat_t *ps, char *state) fields_len = strsplit (buffer, fields, 64); if (fields_len < 24) { - DEBUG ("`%s' has only %i fields..", - filename, fields_len); + DEBUG ("processes plugin: ps_read_process (pid = %i):" + " `%s' has only %i fields..", + (int) pid, filename, fields_len); return (-1); } - else if (fields_len != 41) - { - DEBUG ("WARNING: (fields_len = %i) != 41", fields_len); - } /* copy the name, strip brackets in the process */ name_len = strlen (fields[1]) - 2; diff --git a/src/unixsock.c b/src/unixsock.c index 4cf3c134..95ccb9da 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -863,9 +863,7 @@ static int us_shutdown (void) if (listen_thread != (pthread_t) 0) { - DEBUG ("unixsock plugin: Sending SIGTERM to listening thread"); pthread_kill (listen_thread, SIGTERM); - DEBUG ("unixsock plugin: Waiting for thread to terminate"); pthread_join (listen_thread, &ret); listen_thread = (pthread_t) 0; }