summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/logging.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 5deb90cdae2..e3a4a9fde09 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -373,9 +373,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;
+ file = "/dev/stderr";
}
ctx->log.filename = gf_strdup (file);