aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-03-16 00:15:05 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-03-16 00:15:05 +0500
commit2980a625eab621f842456e06f660528f6fd61523 (patch)
treec903833d766cc02c3bbdf6cf66e6d49126a4d2a7
parentb3aafb2c908ee767656555086c9c08c471f5063a (diff)
downloadprosody-2980a625eab621f842456e06f660528f6fd61523.tar.gz
prosody-2980a625eab621f842456e06f660528f6fd61523.zip
mod_compression: Improved and lowered log level of some logged messages.
-rw-r--r--plugins/mod_compression.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 87ff6be7..fe1e0c67 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -42,7 +42,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
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 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
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 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
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