summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 118a94f0b41..fbf3e89fb78 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -363,9 +363,10 @@ cli_opt_parse (char *opt, struct cli_state *state)
oarg = strtail (opt, "log-level=");
if (oarg) {
- state->log_level = glusterd_check_log_level(oarg);
- if (state->log_level == -1)
+ int log_level = glusterd_check_log_level(oarg);
+ if (log_level == -1)
return -1;
+ state->log_level = (gf_loglevel_t) log_level;
return 0;
}