[asterisk-commits] logger: Add PID to syslog messages. (asterisk[13])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 14 19:50:45 CDT 2016


Anonymous Coward #1000019 has submitted this change and it was merged.

Change subject: logger: Add PID to syslog messages.
......................................................................


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
---
M main/logger.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



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: merged
Gerrit-Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-commits mailing list