Software /
code /
prosody
Comparison
core/s2smanager.lua @ 4156:e3282871dd44
s2smanager: Drop some log messages to debug level from info/warn
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 22 Feb 2011 18:27:31 +0000 |
parent | 4131:81636fa77cab |
child | 4200:fb487ee690ea |
comparison
equal
deleted
inserted
replaced
4155:3c5d6a7f07e1 | 4156:e3282871dd44 |
---|---|
165 if session.conn ~= conn or | 165 if session.conn ~= conn or |
166 session.type == "s2sin" then | 166 session.type == "s2sin" then |
167 return; -- Ok, we're connect[ed|ing] | 167 return; -- Ok, we're connect[ed|ing] |
168 end | 168 end |
169 -- Not connected, need to close session and clean up | 169 -- Not connected, need to close session and clean up |
170 (session.log or log)("warn", "Destroying incomplete session %s->%s due to inactivity", | 170 (session.log or log)("debug", "Destroying incomplete session %s->%s due to inactivity", |
171 session.from_host or "(unknown)", session.to_host or "(unknown)"); | 171 session.from_host or "(unknown)", session.to_host or "(unknown)"); |
172 session:close("connection-timeout"); | 172 session:close("connection-timeout"); |
173 end); | 173 end); |
174 return session; | 174 return session; |
175 end | 175 end |
623 return setmetatable(session, resting_session); | 623 return setmetatable(session, resting_session); |
624 end | 624 end |
625 | 625 |
626 function destroy_session(session, reason) | 626 function destroy_session(session, reason) |
627 if session.destroyed then return; end | 627 if session.destroyed then return; end |
628 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); | 628 (session.log or log)("debug", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); |
629 | 629 |
630 if session.direction == "outgoing" then | 630 if session.direction == "outgoing" then |
631 hosts[session.from_host].s2sout[session.to_host] = nil; | 631 hosts[session.from_host].s2sout[session.to_host] = nil; |
632 bounce_sendq(session, reason); | 632 bounce_sendq(session, reason); |
633 elseif session.direction == "incoming" then | 633 elseif session.direction == "incoming" then |