mod_posix: Support syslog_facility config option
authorMatthew Wild <mwild1@gmail.com>
Thu, 26 Apr 2012 18:14:42 +0100
changeset 4794 25ce7720555f
parent 4793 eaa8991998d5
child 4796 04a34287dc12
mod_posix: Support syslog_facility config option
plugins/mod_posix.lua
--- a/plugins/mod_posix.lua	Tue Apr 24 21:37:20 2012 +0200
+++ b/plugins/mod_posix.lua	Thu Apr 26 18:14:42 2012 +0100
@@ -112,7 +112,7 @@
 local syslog_opened;
 function syslog_sink_maker(config)
 	if not syslog_opened then
-		pposix.syslog_open("prosody");
+		pposix.syslog_open("prosody", module:get_option_string("syslog_facility"));
 		syslog_opened = true;
 	end
 	local syslog, format = pposix.syslog_log, string.format;