[Asterisk-code-review] logger: Add PID to syslog messages. (asterisk[11])

Joshua Colp asteriskteam at digium.com
Thu May 12 05:37:04 CDT 2016


Joshua Colp has uploaded a new change for review.

  https://gerrit.asterisk.org/2812

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(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/12/2812/1

diff --git a/main/logger.c b/main/logger.c
index 5a87d45..1424352 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -316,6 +316,7 @@
 
 		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 = "";

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list