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(-) (limited to 'plugins') 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