ctdb-common: Log a message when an invalid conf value is encountered
[vlendec/samba-autobuild/.git] / ctdb / common / conf.c
index cd1fa4acd2bc259353f1f3918cc574f31630a2db..f673c61fa8d4bfb3b86cfa72f197850eebdfe7ca 100644 (file)
@@ -1135,6 +1135,10 @@ static bool conf_load_option(const char *name,
        value.type = opt->type;
        ret = conf_value_from_string(tmp_ctx, value_str, &value);
        if (ret != 0) {
+               D_ERR("conf: invalid value [%s] -> \"%s\" = \"%s\"\n",
+                     state->s->name,
+                     name,
+                     value_str);
                talloc_free(tmp_ctx);
                state->err = ret;
                return false;