summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c
index 42a1c7000..c9cf50e09 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -531,6 +531,7 @@ static struct logchannel *make_logchannel(const char *channel, const char *compo
}
chan->type = LOGTYPE_SYSLOG;
+ openlog("asterisk", LOG_PID, chan->facility);
} else {
if (!(chan->fileptr = fopen(chan->filename, "a"))) {
/* Can't do real logging here since we're called with a lock