From 317f2656225905794a26c454e8c22f30166107f2 Mon Sep 17 00:00:00 2001 From: Bharata B Rao Date: Fri, 16 Aug 2013 11:39:01 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/5637 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index b92cc03d..5deb90cd 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; } -- cgit