summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorBharata B Rao <bharata@linux.vnet.ibm.com>2013-08-16 11:39:01 +0530
committerAnand Avati <avati@redhat.com>2013-08-19 12:43:51 -0700
commit317f2656225905794a26c454e8c22f30166107f2 (patch)
tree4e17e7689bd6bf20997301d2cfe2a4385ffedcb4 /libglusterfs
parent3c9f3e642fd3ea81b9371eb1eec946882b1cb746 (diff)
log: Fix logging to stderr
This fix enables gluster clients like QEMU using glfs_set_logging() with "-" as logfile to see client side errors on stderr. Change-Id: I35f7b65460d1c03f910ceb3bad0a65677317e702 Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Reviewed-on: http://review.gluster.org/5637 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index b92cc03d2e4..5deb90cdae2 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -374,7 +374,7 @@ gf_log_init (void *data, const char *file, const char *ident)
if (strcmp (file, "-") == 0) {
ctx->log.gf_log_logfile = stderr;
-
+ ctx->log.logfile = stderr;
return 0;
}