From 3201a6103a503d8cad8c562355a83fe987c2ca67 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(-) 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