]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core/logging: Fix logging to more than one syslog channel 94/1294/1
authorElazar Broad <elazar@thebroadfamily.com>
Mon, 21 Sep 2015 13:16:46 +0000 (09:16 -0400)
committerMatt Jordan <mjordan@digium.com>
Tue, 22 Sep 2015 12:40:57 +0000 (07:40 -0500)
commitec514ad64dbc0014525008977c8c74c2856c9d3a
tree74efae0cb9fe3a2cc80e12ae061618b6ce3c1742
parent0ce661f0c03461a2ba217065efd19834f34cf2e1
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