summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.c
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2012-12-20 16:48:50 +0530
committerVijay Bellur <vbellur@redhat.com>2012-12-21 03:48:48 -0800
commit91cc423b48df800dcfff7040ca4a95ef2a9d6afc (patch)
treee733df7d4c4716d025926c6e3e4c2671d41f21a0 /libglusterfs/src/logging.c
parent2cced9f0c116df102b6163d24c0ad7e09d198a69 (diff)
logging: Added fflush in _gf_log.
Change-Id: I06444b6bc3b1acc8cabd863087bd3508de3c548c BUG: 889157 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/4344 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r--libglusterfs/src/logging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 78560870987..d8b9a124b9e 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -541,8 +541,10 @@ log:
if (ctx->log.logfile) {
fprintf (ctx->log.logfile, "%s\n", msg);
+ fflush (ctx->log.logfile);
} else {
fprintf (stderr, "%s\n", msg);
+ fflush (stderr);
}
#ifdef GF_LINUX_HOST_OS