From 2980a625eab621f842456e06f660528f6fd61523 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 16 Mar 2010 00:15:05 +0500 Subject: mod_compression: Improved and lowered log level of some logged messages. --- plugins/mod_compression.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua index 87ff6be7..fe1e0c67 100644 --- a/plugins/mod_compression.lua +++ b/plugins/mod_compression.lua @@ -42,7 +42,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc if session.compressed then local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("setup-failed"); session.send(error_st); - session.log("warn", "Tried to establish another compression layer."); + session.log("debug", "Client tried to establish another compression layer."); return; end @@ -69,7 +69,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc return end - session.log("info", method.." compression selected."); + session.log("debug", "zlib compression enabled."); session.send(st.stanza("compressed", {xmlns=xmlns_compression_protocol})); session:reset_stream(); @@ -117,7 +117,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc end; session.compressed = true; elseif method then - session.log("info", "%s compression selected, but we don't support it.", tostring(method)); + session.log("debug", "%s compression selected, but we don't support it.", tostring(method)); local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method"); session.send(error_st); else -- cgit v1.2.3 From fb803e14088f1fae972d0f6d15d051b5a375be6e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 18 Mar 2010 01:15:25 +0000 Subject: s2smanager: Remove the infamous 'as per RFC' log message entirely (it happens too often to be useful) --- core/s2smanager.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 92f07354..b01653db 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -359,12 +359,6 @@ function streamopened(session, attr) session.secure = true; end - if session.version >= 1.0 and not (attr.to and attr.from) then - - (session.log or log)("warn", "Remote of stream "..(session.from_host or "(unknown)").."->"..(session.to_host or "(unknown)") - .." failed to specify to (%s) and/or from (%s) hostname as per RFC", tostring(attr.to), tostring(attr.from)); - end - if session.direction == "incoming" then -- Send a reply stream header session.to_host = attr.to and nameprep(attr.to); -- cgit v1.2.3