]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core/logging: Fix logging to more than one syslog channel 88/1288/2
authorElazar Broad <elazar@thebroadfamily.com>
Mon, 21 Sep 2015 13:16:46 +0000 (09:16 -0400)
committerMatt Jordan <mjordan@digium.com>
Mon, 21 Sep 2015 13:37:06 +0000 (08:37 -0500)
commita29cf45c7648acf9e19a162f89e923a8fbd46d06
tree4a713395f7db386c2260071bf6634346d43e6472
parent5541c6de6e74f1c08e9b3e4467c50bab83c85c88
core/logging: Fix logging to more than one syslog channel

Currently, Asterisk will log to the last configured syslog
channel in logger.conf. This is due to the fact that the
final call to openlog() supersedes all of the previous calls.
This commit removes the call to openlog() and passes the
facility to ast_log_vsyslog(), along with utilizing the
LOG_MAKEPRI macro to ensure that the message is routed to
the correct facility and with the correct priority.

ASTERISK-25407 #close
Reported by: Elazar Broad
Tested by: Elazar Broad

Change-Id: Ie2a2416bc00cce1b04e99ef40917c2011953ddd2
main/logger.c