Mercurial > prosody-modules
diff mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua @ 1324:853a382c9bd6
mod_turncredentials: Advertise the XEP-0215 feature (thanks Gryffus)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Feb 2014 15:36:06 +0100 |
parents | c9e2beec4ef6 |
children | b21236b6b8d8 |
line wrap: on
line diff
--- a/mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua Wed Feb 26 13:08:47 2014 -0800 +++ b/mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua Fri Feb 28 15:36:06 2014 +0100 @@ -62,8 +62,8 @@ end if not ok then - return false, "error connecting to dovecot "..tostring(socket_type).." socket at '" - ..tostring(socket_path or socket_info).."'. error was '"..tostring(err).."'"; + log("error", "error connecting to dovecot %s socket at '%s'. error was '%s'", socket_type, socket_path or socket_info, err); + return false; end -- Send our handshake @@ -95,6 +95,7 @@ local major_version = parts(); if major_version ~= "1" then + log("error", "dovecot server version is not 1.x. it is %s.x", major_version); conn:close(); return false, "dovecot server version is not 1.x. it is "..tostring(major_version)..".x"; end