summaryrefslogtreecommitdiff
path: root/ctdb/common/conf_tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/common/conf_tool.c')
-rw-r--r--ctdb/common/conf_tool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/common/conf_tool.c b/ctdb/common/conf_tool.c
index e6020c504e6..8e0753eb787 100644
--- a/ctdb/common/conf_tool.c
+++ b/ctdb/common/conf_tool.c
@@ -276,6 +276,7 @@ int main(int argc, const char **argv)
TALLOC_CTX *mem_ctx;
struct conf_tool_context *ctx;
int ret, result;
+ int level;
bool ok;
mem_ctx = talloc_new(NULL);
@@ -297,10 +298,11 @@ int main(int argc, const char **argv)
}
setup_logging("ctdb-config", DEBUG_STDERR);
- ok = debug_level_parse(conf_data.debug, &DEBUGLEVEL);
+ ok = debug_level_parse(conf_data.debug, &level);
if (!ok) {
- DEBUGLEVEL = DEBUG_ERR;
+ level = DEBUG_ERR;
}
+ debuglevel_set(level);
ret = conf_tool_run(ctx, &result);
if (ret != 0) {