aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-24 14:47:23 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-24 14:47:23 +0100
commit0aade7cf5f6f347d1f71335679f97cd54f8f01eb (patch)
treeec2d18237b2784141313beda9252e2d3402d5a37 /core
parenta8c4e8eb513148724cdaed020158e59b0e14b322 (diff)
downloadprosody-0aade7cf5f6f347d1f71335679f97cd54f8f01eb.tar.gz
prosody-0aade7cf5f6f347d1f71335679f97cd54f8f01eb.zip
Fix for sessionmanager to not throw error when session doesn't have a private logger
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 2b7659d2..a7858d9e 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -34,7 +34,7 @@ function new_session(conn)
end
function destroy_session(session)
- session.log("info", "Destroying session");
+ (session.log or log)("info", "Destroying session");
if session.host and session.username then
if session.resource then
hosts[session.host].sessions[session.username].sessions[session.resource] = nil;