From cc63bb3d411de451daad21f03bde97504fe67267 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 7 May 2011 21:15:34 +0500 Subject: sessionmanager: Log reason when destroying a session. --- core/sessionmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3