summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r--libglusterfs/src/logging.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c
index 5b9c1fc4f74..5485260bc10 100644
--- a/libglusterfs/src/logging.c
+++ b/libglusterfs/src/logging.c
@@ -136,6 +136,12 @@ gf_log_init (const char *file)
return -1;
}
+ if (strcmp (file, "-") == 0) {
+ gf_log_logfile = stderr;
+
+ return 0;
+ }
+
filename = gf_strdup (file);
if (!filename) {
fprintf (stderr, "ERROR: updating log-filename failed: %s\n",