diff -r c84ff82658cb -r 853a382c9bd6 mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua --- 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