Software /
code /
prosody
Diff
plugins/mod_compression.lua @ 2324:9f7eb1054a2f
mod_compression: Tweak some log levels
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Dec 2009 19:04:03 +0000 |
parent | 2293:abd28ed5d8b0 |
child | 2609:2ee28cae530a |
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