summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorZhang Huan <zhanghuan@open-fs.com>2017-12-05 12:45:46 +0800
committerJeff Darcy <jeff@pl.atyp.us>2017-12-06 23:45:23 +0000
commit28202631fecbc3b20a55cfc5fa339663db37e955 (patch)
tree28124115916e36068848473a9327360844f7cfb4 /cli/src
parentc502ca166473f4f0e027f3475924d8dc4e486bd3 (diff)
libglusterfs: specify ctx in gf_log_set_loglevel
specify ctx in gf_log_set_loglevel, instead of getting it from a thread specific variable. Change-Id: I498f826e8e32231235a6b0005026a27c327727fd BUG: 1521213 Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 2c3c06b507b..930182c65b7 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -179,8 +179,8 @@ logging_init (glusterfs_ctx_t *ctx, struct cli_state *state)
/* CLI should not have something to DEBUG after the release,
hence defaulting to INFO loglevel */
- gf_log_set_loglevel ((state->log_level == GF_LOG_NONE) ? GF_LOG_INFO :
- state->log_level);
+ gf_log_set_loglevel (ctx, (state->log_level == GF_LOG_NONE) ?
+ GF_LOG_INFO : state->log_level);
return 0;
}