plugins/mod_compression.lua

changeset 2892
9f214431de29
parent 2887
765e7070d0a8
parent 2890
6273d4672cb4
child 3127
94639081f327
child 3199
fd2389a240a2
--- a/plugins/mod_compression.lua	Wed Mar 17 14:28:26 2010 +0000
+++ b/plugins/mod_compression.lua	Thu Mar 18 01:25:50 2010 +0000
@@ -170,7 +170,7 @@
 			if session.compressed then
 				local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("setup-failed");
 				(session.sends2s or 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
 			
@@ -178,7 +178,7 @@
 			local method = stanza:child_with_name("method");
 			method = method and (method[1] or "");
 			if method == "zlib" then
-				session.log("debug", "%s compression selected.", tostring(method));
+				session.log("debug", "zlib compression enabled.");
 				
 				-- create deflate and inflate streams
 				local deflate_stream = get_deflate_stream(session);
@@ -204,7 +204,7 @@
 					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.sends2s or session.send)(error_st);
 			else

mercurial