summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 8ed1493faa5..32059123dd2 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -1101,9 +1101,12 @@ glusterfs_init (glusterfs_init_params_t *init_ctx, uint32_t fakefsid)
} else if (!strncasecmp (init_ctx->loglevel, "ERROR",
strlen ("ERROR"))) {
ctx->gf_ctx.cmd_args.log_level = GF_LOG_ERROR;
+ } else if (!strncasecmp (init_ctx->loglevel, "TRACE",
+ strlen ("TRACE"))) {
+ ctx->gf_ctx.cmd_args.log_level = GF_LOG_TRACE;
} else {
fprintf (stderr,
- "libglusterfsclient: %s:%s():%d: Unrecognized log-level \"%s\", possible values are \"DEBUG|WARNING|[ERROR]|CRITICAL|NONE\"\n",
+ "libglusterfsclient: %s:%s():%d: Unrecognized log-level \"%s\", possible values are \"DEBUG|WARNING|[ERROR]|CRITICAL|NONE|TRACE\"\n",
__FILE__, __PRETTY_FUNCTION__, __LINE__,
init_ctx->loglevel);
FREE (ctx->gf_ctx.cmd_args.log_file);