Software /
code /
prosody
Comparison
plugins/mod_compression.lua @ 3295:8865d1b3dce2
mod_compression: Lowered a log level.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 24 Jun 2010 03:46:05 +0500 |
parent | 3200:fd2389a240a2 |
child | 3301:772fb30b28fb |
comparison
equal
deleted
inserted
replaced
3241:fee11dbd5cf8 | 3295:8865d1b3dce2 |
---|---|
53 -- do we support the mechanism | 53 -- do we support the mechanism |
54 for a in comp_st:children() do | 54 for a in comp_st:children() do |
55 local algorithm = a[1] | 55 local algorithm = a[1] |
56 if algorithm == "zlib" then | 56 if algorithm == "zlib" then |
57 session.sends2s(st.stanza("compress", {xmlns=xmlns_compression_protocol}):tag("method"):text("zlib")) | 57 session.sends2s(st.stanza("compress", {xmlns=xmlns_compression_protocol}):tag("method"):text("zlib")) |
58 session.log("info", "Enabled compression using zlib.") | 58 session.log("debug", "Enabled compression using zlib.") |
59 return true; | 59 return true; |
60 end | 60 end |
61 end | 61 end |
62 session.log("debug", "Remote server supports no compression algorithm we support.") | 62 session.log("debug", "Remote server supports no compression algorithm we support.") |
63 end | 63 end |