aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;