aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-05-07 21:15:13 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-05-07 21:15:13 +0500
commit3201a6103a503d8cad8c562355a83fe987c2ca67 (patch)
tree2c938bb97b1a4b116e2e5a56e5a9ba9b9e1b2617 /core/s2smanager.lua
parent3d0ba776a6e34710eb43140fdba8350d72e62aac (diff)
downloadprosody-3201a6103a503d8cad8c562355a83fe987c2ca67.tar.gz
prosody-3201a6103a503d8cad8c562355a83fe987c2ca67.zip
s2smanager: Log reason when destroying a session.
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
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;