Diff

plugins/mod_compression.lua @ 2890:6273d4672cb4

mod_compression: Improved and lowered log level of some logged messages.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 16 Mar 2010 00:15:05 +0500
parent 2886:3baee526d714
child 2892:9f214431de29
line wrap: on
line diff
--- a/plugins/mod_compression.lua	Tue Mar 09 20:14:47 2010 +0500
+++ b/plugins/mod_compression.lua	Tue Mar 16 00:15:05 2010 +0500
@@ -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