aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
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