diff options
author | Amitay Isaacs <amitay@gmail.com> | 2016-11-30 16:46:19 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2016-12-05 08:09:22 +0100 |
commit | 28b6a90a159f78abb37dba04ee4f178cc5dde647 (patch) | |
tree | f1eb558d951a73d2034623956c4087de6d7fbe36 /ctdb/server/ctdb_logging.c | |
parent | 02aa65cede61da7d53087bc3c836c6c101d5bf36 (diff) | |
download | samba-28b6a90a159f78abb37dba04ee4f178cc5dde647.tar.gz |
ctdb-daemon: Consolidate initialization of logging and debug level
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server/ctdb_logging.c')
-rw-r--r-- | ctdb/server/ctdb_logging.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_logging.c b/ctdb/server/ctdb_logging.c index 198718029d2..fdf0673308b 100644 --- a/ctdb/server/ctdb_logging.c +++ b/ctdb/server/ctdb_logging.c @@ -52,7 +52,8 @@ struct ctdb_log_state { static struct ctdb_log_state *log_state; /* Initialise logging */ -bool ctdb_logging_init(TALLOC_CTX *mem_ctx, const char *logging) +bool ctdb_logging_init(TALLOC_CTX *mem_ctx, const char *logging, + const char *debug_level) { int ret; @@ -61,7 +62,7 @@ bool ctdb_logging_init(TALLOC_CTX *mem_ctx, const char *logging) return false; } - ret = logging_init(mem_ctx, logging, NULL, "ctdbd"); + ret = logging_init(mem_ctx, logging, debug_level, "ctdbd"); if (ret != 0) { return false; } |