Changeset

2891:955a12ac985e

Merge 0.6 with waqas
author Matthew Wild <mwild1@gmail.com>
date Thu, 18 Mar 2010 01:16:39 +0000
parents 2889:c1e6df7cf56a (current diff) 2890:6273d4672cb4 (diff)
children 2892:9f214431de29 2922:0ea2ed371fb2
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_compression.lua	Thu Mar 18 01:15:25 2010 +0000
+++ b/plugins/mod_compression.lua	Thu Mar 18 01:16:39 2010 +0000
@@ -42,7 +42,7 @@
 			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 @@
 					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 @@
 					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