Mercurial > prosody-modules
diff mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1673:aac5e56615ce
mod_s2s_auth_dane: Demote log message about failure to ASCII-ify hostname from error to warning
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 13 Apr 2015 13:35:37 +0200 |
parents | 9a3d2f1479a4 |
children | 7f4c64cfed09 |
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Sun Apr 12 18:19:41 2015 +0200 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Mon Apr 13 13:35:37 2015 +0200 @@ -74,9 +74,9 @@ -- and incoming connections, so this should work well local name = host_session.from_host and idna_to_ascii(host_session.from_host); if not name then - module:log("error", "Could not convert '%s' to ASCII for DNS lookup", tostring(host_session.from_host)); - return; - end + module:log("warn", "Could not convert '%s' to ASCII for DNS lookup", tostring(host_session.from_host)); + return; + end host_session.dane = dns_lookup(function (answer, err) host_session.dane = false; -- Mark that we already did the lookup