diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-14 00:39:31 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-08-14 00:39:31 +0300 |
commit | 1273bad26b0e6fd34e3b5a9227c0a0bb89b37537 (patch) | |
tree | 4f7a4594484f1a0fe9d23d31382acbeb12cf8254 /src/log.c | |
parent | c50ec4efef94710302a2da98b78d8a2bfc567c35 (diff) |
health configuration now parses templates too
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |