Changeset

2324:9f7eb1054a2f

mod_compression: Tweak some log levels
author Matthew Wild <mwild1@gmail.com>
date Fri, 04 Dec 2009 19:04:03 +0000
parents 2323:b7f683c55a44
children 2325:265441f2ad48
files plugins/mod_compression.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_compression.lua	Fri Dec 04 18:59:28 2009 +0000
+++ b/plugins/mod_compression.lua	Fri Dec 04 19:04:03 2009 +0000
@@ -177,7 +177,7 @@
 			-- checking if the compression method is supported
 			local method = stanza:child_with_name("method")[1];
 			if method == "zlib" then
-				session.log("info", method.." compression selected.");
+				session.log("debug", method.." compression selected.");
 				
 				-- create deflate and inflate streams
 				local deflate_stream = get_deflate_stream(session);
@@ -203,7 +203,7 @@
 					end;
 				session.compressed = true;
 			else
-				session.log("info", method.." compression selected. But we don't support it.");
+				session.log("warn", method.." compression selected. But we don't support it.");
 				local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
 				(session.sends2s or session.send)(error_st);
 			end