# HG changeset patch # User Matthew Wild # Date 1343064494 -3600 # Node ID 164dc19519d8442a60e170845cc049820f06a224 # Parent 47a7ac6508b388e217861dfa43a3fee96ce4c323 mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug' diff -r 47a7ac6508b3 -r 164dc19519d8 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Mon Jul 23 18:26:30 2012 +0100 +++ b/plugins/mod_c2s.lua Mon Jul 23 18:28:14 2012 +0100 @@ -124,7 +124,7 @@ end if reason then -- nil == no err, initiated by us, false == initiated by client if type(reason) == "string" then -- assume stream error - log("info", "Disconnecting client, is: %s", reason); + log("debug", "Disconnecting client, is: %s", reason); session.send(st.stanza("stream:error"):tag(reason, {xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' })); elseif type(reason) == "table" then if reason.condition then @@ -135,10 +135,10 @@ if reason.extra then stanza:add_child(reason.extra); end - log("info", "Disconnecting client, is: %s", tostring(stanza)); + log("debug", "Disconnecting client, is: %s", tostring(stanza)); session.send(stanza); elseif reason.name then -- a stanza - log("info", "Disconnecting client, is: %s", tostring(reason)); + log("debug", "Disconnecting client, is: %s", tostring(reason)); session.send(reason); end end diff -r 47a7ac6508b3 -r 164dc19519d8 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Mon Jul 23 18:26:30 2012 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Mon Jul 23 18:28:14 2012 +0100 @@ -344,7 +344,7 @@ end if reason then -- nil == no err, initiated by us, false == initiated by remote if type(reason) == "string" then -- assume stream error - log("info", "Disconnecting %s[%s], is: %s", session.host or "(unknown host)", session.type, reason); + log("debug", "Disconnecting %s[%s], is: %s", session.host or "(unknown host)", session.type, reason); session.sends2s(st.stanza("stream:error"):tag(reason, {xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' })); elseif type(reason) == "table" then if reason.condition then @@ -355,10 +355,10 @@ if reason.extra then stanza:add_child(reason.extra); end - log("info", "Disconnecting %s[%s], is: %s", session.host or "(unknown host)", session.type, tostring(stanza)); + log("debug", "Disconnecting %s[%s], is: %s", session.host or "(unknown host)", session.type, tostring(stanza)); session.sends2s(stanza); elseif reason.name then -- a stanza - log("info", "Disconnecting %s->%s[%s], is: %s", session.from_host or "(unknown host)", session.to_host or "(unknown host)", session.type, tostring(reason)); + log("debug", "Disconnecting %s->%s[%s], is: %s", session.from_host or "(unknown host)", session.to_host or "(unknown host)", session.type, tostring(reason)); session.sends2s(reason); end end