summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-09-24 00:57:39 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-24 01:19:42 -0700
commit56d00a6e589525d4e88c86d800ef0b9665564e80 (patch)
treef6009c4fa48e20ddb831381aa21887f2d0c03343 /libglusterfsclient
parent84ad18a00cf0ddd5723eb2d43a0c046a4ed66059 (diff)
libglusterfsclient: Support TRACE loglevel
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 210 (libglusterfsclient: Enhance logging) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=210
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 abb027232f3..962eb973d28 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);