Software /
code /
prosody
Diff
plugins/mod_posix.lua @ 5453:116971a751d3
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 17:22:15 +0100 |
parent | 5452:edf3db386a19 |
child | 5776:bd0ff8ae98a8 |
child | 6357:ccae56e34956 |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Mon Apr 08 15:32:51 2013 +0100 +++ b/plugins/mod_posix.lua Mon Apr 08 17:22:15 2013 +0100 @@ -7,10 +7,12 @@ -- -local want_pposix_version = "0.3.5"; +local want_pposix_version = "0.3.6"; local pposix = assert(require "util.pposix"); -if pposix._VERSION ~= want_pposix_version then module:log("warn", "Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version); end +if pposix._VERSION ~= want_pposix_version then + module:log("warn", "Unknown version (%s) of binary pposix module, expected %s. Perhaps you need to recompile?", tostring(pposix._VERSION), want_pposix_version); +end local signal = select(2, pcall(require, "util.signal")); if type(signal) == "string" then @@ -118,9 +120,9 @@ local syslog, format = pposix.syslog_log, string.format; return function (name, level, message, ...) if ... then - syslog(level, format(message, ...)); + syslog(level, name, format(message, ...)); else - syslog(level, message); + syslog(level, name, message); end end; end