diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-05-07 21:15:13 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-05-07 21:15:13 +0500 |
commit | 9c62d4894f184c2706cd83dac1a107bd1bd5092e (patch) | |
tree | 2c938bb97b1a4b116e2e5a56e5a9ba9b9e1b2617 /core | |
parent | be19c910e21a3893076aa907b3f978031a5e3fbf (diff) | |
download | prosody-9c62d4894f184c2706cd83dac1a107bd1bd5092e.tar.gz prosody-9c62d4894f184c2706cd83dac1a107bd1bd5092e.zip |
s2smanager: Log reason when destroying a session.
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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; |