From 9f996624b09f2610ed1b80e8cbbc3f1885bb1c6f Mon Sep 17 00:00:00 2001
From: Alexei Gradinari <alex2grad@gmail.com>
Date: Thu, 5 May 2016 17:41:21 -0400
Subject: [PATCH] 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
---
 main/logger.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main/logger.c b/main/logger.c
index 42a1c70004..c9cf50e09f 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
-- 
GitLab