aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
commitcc63bb3d411de451daad21f03bde97504fe67267 (patch)
tree48b9c699a02156e6e8c55a098ed2d1de26b9212e /core
parent3201a6103a503d8cad8c562355a83fe987c2ca67 (diff)
downloadprosody-cc63bb3d411de451daad21f03bde97504fe67267.tar.gz
prosody-cc63bb3d411de451daad21f03bde97504fe67267.zip
sessionmanager: Log reason when destroying a session.
Diffstat (limited to 'core')
-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