From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Wed, 19 Jun 2019 08:34:25 +0000 (+0200) Subject: be more verbose when plugin config cb is failing X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=42a30efe33c4d16276589e0dd1f9e135b38e054d;p=collectd.git be more verbose when plugin config cb is failing 3b9c7b2 introduced stricter RC check. This commit provides user feedback when config callback is failing. Change-Id: Ia9c13048e95559b5be84477fc1602ff418a1df37 --- diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index 735be83d..c500d3ee 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -414,8 +414,10 @@ static int dispatch_block_plugin(oconfig_item_t *ci) { for (int i = 0, ret = 0; i < ci->children_num; i++) { if (ci->children[i].children == NULL) { ret = dispatch_value_plugin(name, ci->children + i); - if (ret != 0) + if (ret != 0) { + ERROR("dispatch for plugin %s returned non-zero code : %i", name, ret); return ret; + } } else { WARNING("There is a `%s' block within the " "configuration for the %s plugin. "