]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
logger: Add PID to syslog messages. 12/2812/1
authorAlexei Gradinari <alex2grad@gmail.com>
Thu, 5 May 2016 21:41:21 +0000 (17:41 -0400)
committerJoshua Colp <jcolp@digium.com>
Thu, 12 May 2016 10:35:55 +0000 (07:35 -0300)
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

main/logger.c

index 5a87d45b4385b0b90d97018de94d1dcb7002b36a..14243523809e47ac2f3aa70b1f1764d43c29a2d1 100644 (file)
@@ -316,6 +316,7 @@ static struct logchannel *make_logchannel(const char *channel, const char *compo
 
                chan->type = LOGTYPE_SYSLOG;
                ast_copy_string(chan->filename, channel, sizeof(chan->filename));
+               openlog("asterisk", LOG_PID, chan->facility);
        } else {
                const char *log_dir_prefix = "";
                const char *log_dir_separator = "";