Comparison

plugins/mod_posix.lua @ 1050:9552c08241af

Merge with 0.4 branch
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Apr 2009 03:28:35 +0100
parent 1042:a3d77353c18a
parent 1045:06887b889b17
child 1066:0cb325970a50
comparison
equal deleted inserted replaced
1044:41a0c76127f4 1050:9552c08241af
41 end 41 end
42 42
43 local syslog_opened 43 local syslog_opened
44 function syslog_sink_maker(config) 44 function syslog_sink_maker(config)
45 if not syslog_opened then 45 if not syslog_opened then
46 print("OPENING SYSLOOOOOOOOOG");
47 pposix.syslog_open("prosody"); 46 pposix.syslog_open("prosody");
48 syslog_opened = true; 47 syslog_opened = true;
49 end 48 end
50 local syslog, format = pposix.syslog_log, string.format; 49 local syslog, format = pposix.syslog_log, string.format;
51 return function (name, level, message, ...) 50 return function (name, level, message, ...)