aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-16 05:18:38 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-16 05:18:38 +0000
commit1c899aec8da24ca76985ca27689322165f0ba698 (patch)
tree18672009c24398171cc50abadd784c93ebedac03 /plugins/mod_posix.lua
parent43c5e285582173e2a5791501694953dcbbd4cae0 (diff)
downloadprosody-1c899aec8da24ca76985ca27689322165f0ba698.tar.gz
prosody-1c899aec8da24ca76985ca27689322165f0ba698.zip
mod_posix: Check version of pposix
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 7461f237..0dd92072 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -1,5 +1,8 @@
+local pposix_version = "0.3.0";
+
local pposix = assert(require "util.pposix");
+if pposix._VERSION ~= want_pposix_version then log("warn", "Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), pposix_version); end
local config_get = require "core.configmanager".get;
local logger_set = require "util.logger".setwriter;
@@ -13,6 +16,7 @@ if not config_get("*", "core", "no_daemonize") then
local logfilename = config_get("*", "core", "log");
if logfilename == "syslog" then
pposix.syslog_open("prosody");
+ pposix.syslog_setminlevel(config.get("*", "core", "minimum_log_level") or "info");
local syslog, format = pposix.syslog_log, string.format;
logwriter = function (name, level, message, ...)
if ... then