aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-04 19:04:03 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-04 19:04:03 +0000
commit7ce19513add53bf4206abbc3c692fdad7941709d (patch)
treebac4d4bf86b4ba516cb8616e8407ce586b7efa7f /plugins/mod_compression.lua
parent034315b76d08f768df12b0e684689fda18eccfd5 (diff)
downloadprosody-7ce19513add53bf4206abbc3c692fdad7941709d.tar.gz
prosody-7ce19513add53bf4206abbc3c692fdad7941709d.zip
mod_compression: Tweak some log levels
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 8fdf9dcc..638b8e13 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -177,7 +177,7 @@ module:add_handler({"c2s_unauthed", "c2s", "s2sin_unauthed", "s2sin"}, "compress
-- 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 @@ module:add_handler({"c2s_unauthed", "c2s", "s2sin_unauthed", "s2sin"}, "compress
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