aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-12-30 16:43:08 +0100
committerTobias Markmann <tm@ayena.de>2009-12-30 16:43:08 +0100
commit52fe0318ef86169bfc937ccdb85cb486111c35e3 (patch)
treec0882bb1477d698882f815642e5069f6c6fdb0aa /util
parent8b90969a60d3c734eef00c84bc22147ac26c397f (diff)
downloadprosody-52fe0318ef86169bfc937ccdb85cb486111c35e3.tar.gz
prosody-52fe0318ef86169bfc937ccdb85cb486111c35e3.zip
util.sasl_cyrus: Report an error if Cyrus SASL init fails.
Diffstat (limited to 'util')
-rw-r--r--util/sasl_cyrus.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index 610257ca..b42bee07 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -35,8 +35,11 @@ local initialized = false;
local function init(service_name)
if not initialized then
- if pcall(cyrussasl.server_init, service_name) then
+ local st, errmsg = pcall(cyrussasl.server_init, service_name);
+ if st then
initialized = true;
+ else
+ log("error", "Failed to initialize CyrusSASL: %s", errmsg);
end
end
end