summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2016-08-14 00:39:31 +0300
committerCosta Tsaousis <costa@tsaousis.gr>2016-08-14 00:39:31 +0300
commit1273bad26b0e6fd34e3b5a9227c0a0bb89b37537 (patch)
tree4f7a4594484f1a0fe9d23d31382acbeb12cf8254 /src/log.c
parentc50ec4efef94710302a2da98b78d8a2bfc567c35 (diff)
health configuration now parses templates too
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index 2fac84cf25..1ad723985f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -38,8 +38,10 @@ int open_log_file(int fd, FILE **fp, const char *filename, int *enabled_syslog)
// don't do anything if the user is willing
// to have the standard one
- if(!strcmp(filename, "system"))
- return fd;
+ if(!strcmp(filename, "system")) {
+ if(fd != -1) return fd;
+ filename = "stdout";
+ }
if(!strcmp(filename, "stdout"))
f = STDOUT_FILENO;