summaryrefslogtreecommitdiff
path: root/ctdb/event
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-07 14:14:05 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-08 11:03:11 +0100
commit2d512b278e5905964c1294c587ba405678c3d10c (patch)
treea891cf0886d58e04d3ad2faadc5545c077865929 /ctdb/event
parent71ef09c1afdbf967b829cb66b33c3a5cb1c18ba0 (diff)
downloadsamba-2d512b278e5905964c1294c587ba405678c3d10c.tar.gz
debug: Use debuglevel_(get|set) function
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Nov 8 11:03:11 CET 2018 on sn-devel-144
Diffstat (limited to 'ctdb/event')
-rw-r--r--ctdb/event/event_tool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/event/event_tool.c b/ctdb/event/event_tool.c
index f18deb8d5b1..8350f202cea 100644
--- a/ctdb/event/event_tool.c
+++ b/ctdb/event/event_tool.c
@@ -717,6 +717,7 @@ int main(int argc, const char **argv)
TALLOC_CTX *mem_ctx;
struct event_tool_context *ctx;
int ret, result = 0;
+ int level;
bool ok;
mem_ctx = talloc_new(NULL);
@@ -738,10 +739,11 @@ int main(int argc, const char **argv)
}
setup_logging("ctdb-event", DEBUG_STDERR);
- ok = debug_level_parse(event_data.debug, &DEBUGLEVEL);
+ ok = debug_level_parse(event_data.debug, &level);
if (!ok) {
- DEBUGLEVEL = DEBUG_ERR;
+ level = DEBUG_ERR;
}
+ debuglevel_set(level);
ret = event_tool_run(ctx, &result);
if (ret != 0) {