Comparison

plugins/mod_c2s.lua @ 5802:5b79710dd5a1

mod_c2s: Move another log message to debug level
author Kim Alvefur <zash@zash.se>
date Wed, 14 Aug 2013 15:38:56 +0200
parent 5801:224644752bf4
child 5859:e327f2d4e09f
comparison
equal deleted inserted replaced
5801:224644752bf4 5802:5b79710dd5a1
155 155
156 session.send("</stream:stream>"); 156 session.send("</stream:stream>");
157 function session.send() return false; end 157 function session.send() return false; end
158 158
159 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason; 159 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason;
160 session.log("info", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason or "session closed"); 160 session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason or "session closed");
161 161
162 -- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote 162 -- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote
163 local conn = session.conn; 163 local conn = session.conn;
164 if reason == nil and not session.notopen and session.type == "c2s" then 164 if reason == nil and not session.notopen and session.type == "c2s" then
165 -- Grace time to process data from authenticated cleanly-closed stream 165 -- Grace time to process data from authenticated cleanly-closed stream