From 9c62d4894f184c2706cd83dac1a107bd1bd5092e Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 7 May 2011 21:15:13 +0500 Subject: s2smanager: Log reason when destroying a session. --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/s2smanager.lua') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index a2379f22..f49fae9d 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -625,7 +625,7 @@ end function destroy_session(session, reason) if session.destroyed then return; end - (session.log or log)("debug", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); + (session.log or log)("debug", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)..(reason and (": "..reason) or "")); if session.direction == "outgoing" then hosts[session.from_host].s2sout[session.to_host] = nil; -- cgit v1.2.3