summaryrefslogtreecommitdiff
path: root/ctdb/common
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-08-31 08:32:12 +1000
committerAmitay Isaacs <amitay@samba.org>2018-09-03 10:52:11 +0200
commitebb28c57a17777ea15afab63cd0742dd79b30ffe (patch)
treeaa53ee26a0429b15795edd333f4f0353c5f82d3c /ctdb/common
parent421d828f6cb7c13d5f33c6cc1c6be254554588a4 (diff)
downloadsamba-ebb28c57a17777ea15afab63cd0742dd79b30ffe.tar.gz
ctdb-common: Log a message for unknown conf option
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/common')
-rw-r--r--ctdb/common/conf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/common/conf.c b/ctdb/common/conf.c
index a6e0f830328..cd1fa4acd2b 100644
--- a/ctdb/common/conf.c
+++ b/ctdb/common/conf.c
@@ -1113,8 +1113,14 @@ static bool conf_load_option(const char *name,
opt = conf_option_find(state->s, name);
if (opt == NULL) {
if (state->conf->ignore_unknown) {
+ D_DEBUG("conf: unknown option [%s] -> \"%s\"\n",
+ state->s->name,
+ name);
return true;
} else {
+ D_ERR("conf: unknown option [%s] -> \"%s\"\n",
+ state->s->name,
+ name);
state->err = ENOENT;
return false;
}