diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-05-05 17:41:21 -0400 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-05-12 05:12:15 -0500 |
commit | 9f996624b09f2610ed1b80e8cbbc3f1885bb1c6f (patch) | |
tree | 492a71f27029f87f66498a3d824cdf79b360752d /main/logger.c | |
parent | 1be506d81113f232d1df5a2295feb1a7ba9f4157 (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.c | 1 |
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 |