summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorAlexei Gradinari <alex2grad@gmail.com>2016-05-05 17:41:21 -0400
committerJoshua Colp <jcolp@digium.com>2016-05-12 05:12:05 -0500
commit36d66a23e0afce16c89382ea9cbf5b60afd331f2 (patch)
tree1dc67c5cbdbef1c81143bb58a9b689654f95d45f /main/logger.c
parent3fd8113386e1e4348555fa0fc610c1082aafd5c2 (diff)
logger: Add PID to syslog messages.
During refactoring of this support the addition of the PID to messages was removed. This change adds it back in. ASTERISK-25538 #close Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36
Diffstat (limited to 'main/logger.c')
-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