summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 176bdcd..51109b6 100644
--- a/src/log.c
+++ b/src/log.c
@@ -171,6 +171,7 @@ void close_log(void)
if (STATE(stats_log) != NULL)
fclose(STATE(stats_log));
- if (CONFIG(syslog_facility) != -1)
+ if (CONFIG(syslog_facility) != -1 ||
+ CONFIG(stats).syslog_facility != -1)
closelog();
}