From b64dd21f05016065e0b825db62da87981554df88 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Sun, 19 Jun 2011 12:51:45 +0000 Subject: Fix the command line log to display correct error message. Signed-off-by: Sachidananda Urs Signed-off-by: Anand Avati BUG: 3054 (Typo in cli message) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3054 --- cli/src/cli-cmd-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 1ef8e4e3bea..3e331848d1b 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1037,7 +1037,9 @@ cli_cmd_log_level_parse (const char **words, int worcount, dict_t **options) ret = glusterd_check_log_level(words[5]); if (ret == -1) { - cli_out("invalid log level [%s] specified", words[4]); + cli_out("Invalid log level [%s] specified", words[5]); + cli_out("Valid values for loglevel: (DEBUG|WARNING|ERROR" + "|CRITICAL|NONE|TRACE)"); goto out; } -- cgit