From 42a30efe33c4d16276589e0dd1f9e135b38e054d Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=E1=B4=80=CA=99=C9=AA=E1=B4=87=C9=B4=20W=E1=B4=87=CA=80?= =?utf8?q?=C9=B4=CA=9F=C9=AA?= Date: Wed, 19 Jun 2019 10:34:25 +0200 Subject: [PATCH] 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 --- src/daemon/configfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. " -- 2.11.0