]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core/logging: Fix logging to more than one syslog channel 93/1293/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:51 +0000 (07:40 -0500)
commit29694eb2aaa45c366fe28777722b0307f3742f95
tree95c405784bfd28929704f16b347e7f891eea9986
parent764323fcc697b28a92764305f3c4bcb3b503a033
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