From: Florian Forster Date: Fri, 19 Jun 2015 17:27:27 +0000 (+0200) Subject: write_sensu plugin: Fix debug message. X-Git-Tag: collectd-5.5.1~93 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3bda998c6c40224c5949497fe4d19a9be2ff4a10;p=collectd.git write_sensu plugin: Fix debug message. It still referenced the variables, which have been removed in 1c4008c3216edbc9c7cbeffd1c597c9b32e8f64d. --- diff --git a/src/write_sensu.c b/src/write_sensu.c index 268d9e44..f7803e86 100644 --- a/src/write_sensu.c +++ b/src/write_sensu.c @@ -1172,7 +1172,7 @@ static int sensu_config(oconfig_item_t *ci) /* {{{ */ continue; } if (child->values[0].type != OCONFIG_TYPE_STRING || - child->values[1].type != OCONFIG_TYPE_STRING) { + child->values[1].type != OCONFIG_TYPE_STRING) { WARNING("sensu attribute needs string arguments."); continue; } @@ -1180,7 +1180,9 @@ static int sensu_config(oconfig_item_t *ci) /* {{{ */ strarray_add(&sensu_attrs, &sensu_attrs_num, child->values[0].value.string); strarray_add(&sensu_attrs, &sensu_attrs_num, child->values[1].value.string); - DEBUG("write_sensu: got attr: %s => %s", key, val); + DEBUG("write_sensu plugin: New attribute: %s => %s", + child->values[0].value.string, + child->values[1].value.string); } else if (strcasecmp(child->key, "tag") == 0) { char *tmp = NULL; status = cf_util_get_string(child, &tmp);