# HG changeset patch # User Matthew Wild # Date 1259953443 0 # Node ID 9f7eb1054a2f6c7543984e61e3c9972f97852f5e # Parent b7f683c55a449fa384b5ff48751dc1e9a2aed207 mod_compression: Tweak some log levels diff -r b7f683c55a44 -r 9f7eb1054a2f plugins/mod_compression.lua --- 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