aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-16 00:27:40 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-16 00:27:40 +0000
commit17768803c9d98386e720f8521b5bd87504d9fa68 (patch)
treebd867a104511309686cf0b02030250626a8cba01 /net
parent164a1d1c08b4c4f6a107e5e288f62d981ce37549 (diff)
downloadprosody-17768803c9d98386e720f8521b5bd87504d9fa68.tar.gz
prosody-17768803c9d98386e720f8521b5bd87504d9fa68.zip
Fix logging in some cases for client disconnects
Diffstat (limited to 'net')
-rw-r--r--net/xmppclient_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index b475237f..b5028db0 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -82,7 +82,7 @@ function xmppclient.disconnect(conn, err)
pres:tag("status"):text("Disconnected: "..err);
session.stanza_dispatch(pres);
end
- session.log("info", "Client disconnected: %s", err);
+ (session.log or log)("info", "Client disconnected: %s", err);
sm_destroy_session(session);
sessions[conn] = nil;
session = nil;