projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04ddb9f
)
be more verbose when plugin config cb is failing
author
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ
<faxmodem@collectd.org>
Wed, 19 Jun 2019 08:34:25 +0000
(10:34 +0200)
committer
Matthias Runge
<mrunge@redhat.com>
Tue, 2 Jul 2019 09:35:10 +0000
(11:35 +0200)
3b9c7b2
introduced stricter RC check.
This commit provides user feedback when config callback is failing.
Change-Id: Ia9c13048e95559b5be84477fc1602ff418a1df37
(cherry picked from commit
42a30efe33c4d16276589e0dd1f9e135b38e054d
)
src/daemon/configfile.c
patch
|
blob
|
history
diff --git
a/src/daemon/configfile.c
b/src/daemon/configfile.c
index
735be83
..
c500d3e
100644
(file)
--- 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. "