aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-05-07 21:15:34 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-05-07 21:15:34 +0500
commitfe3b3eecaee059d8c114fb37adac666eceac247d (patch)
tree48b9c699a02156e6e8c55a098ed2d1de26b9212e
parent9c62d4894f184c2706cd83dac1a107bd1bd5092e (diff)
downloadprosody-fe3b3eecaee059d8c114fb37adac666eceac247d.tar.gz
prosody-fe3b3eecaee059d8c114fb37adac666eceac247d.zip
sessionmanager: Log reason when destroying a session.
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 426763f5..e9f81d82 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -103,7 +103,7 @@ function retire_session(session)
end
function destroy_session(session, err)
- (session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");
+ (session.log or log)("info", "Destroying session for %s (%s@%s)%s", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)", err and (": "..err) or "");
if session.destroyed then return; end
-- Remove session/resource from user's session list