From: Florian Forster Date: Thu, 17 Jan 2013 09:50:08 +0000 (+0100) Subject: write_graphite plugin: Remove two more redundant error messages. X-Git-Tag: collectd-5.1.2~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4bfd1fe12c8b7d1e212c04d2e0a069d37a2ffe0c;p=collectd.git write_graphite plugin: Remove two more redundant error messages. The failing functions already print an error message; don't spam the logs by duplicating this. Further fixes Github issue #236. --- diff --git a/src/write_graphite.c b/src/write_graphite.c index b6cba8a3..a3bead39 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -470,7 +470,7 @@ static int wg_send_message (const char* key, const char* value, status = wg_callback_init (cb); if (status != 0) { - ERROR ("write_graphite plugin: wg_callback_init failed."); + /* An error message has already been printed. */ pthread_mutex_unlock (&cb->send_lock); return (-1); } @@ -554,8 +554,7 @@ static int wg_write_messages (const data_set_t *ds, const value_list_t *vl, status = wg_send_message (key, values, vl->time, cb); if (status != 0) { - ERROR ("write_graphite plugin: error with " - "wg_send_message"); + /* An error message has already been printed. */ return (status); } }