[Asterisk-code-review] logger: PID in syslog (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Thu May 5 17:07:30 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/2774

Change subject: logger: PID in syslog
......................................................................

logger: PID in syslog

The PID is missing in syslog.
This patch fixed it.

ASTERISK-25538

Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36
---
M main/logger.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/74/2774/1

diff --git a/main/logger.c b/main/logger.c
index 9db33c9..9f03b4e 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -388,6 +388,7 @@
 		}
 
 		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

-- 
To view, visit https://gerrit.asterisk.org/2774
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list