summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-05-14 19:50:44 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-14 19:50:44 -0500
commit12db14b9b1f690c7a599d0dea36c5ec64a8f5422 (patch)
treec1e51173c63b958166c1bcd4c37dc9642c5ad378 /main
parent9de5cd209e5918d27d03afaaddb41125d7a76701 (diff)
parent36d66a23e0afce16c89382ea9cbf5b60afd331f2 (diff)
Merge "logger: Add PID to syslog messages." into 13
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 9db33c954..9f03b4efa 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -388,6 +388,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