aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-10 20:25:12 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-10 20:25:12 +0100
commit9f963fda9cc3c769ff439687b9b63f9a4315c8fa (patch)
treef0f62c45edcb015a93a6d42f4800426241e2f45e /plugins/mod_bosh.lua
parentd38609fc4807ef55fe43bdc15b2e7bab8ecdf905 (diff)
downloadprosody-9f963fda9cc3c769ff439687b9b63f9a4315c8fa.tar.gz
prosody-9f963fda9cc3c769ff439687b9b63f9a4315c8fa.zip
mod_bosh: Improve logging on session close (reason may be a table with params)
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 880a8235..1418b145 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -210,7 +210,7 @@ local function bosh_reset_stream(session) session.notopen = true; end
local stream_xmlns_attr = { xmlns = "urn:ietf:params:xml:ns:xmpp-streams" };
local function bosh_close_stream(session, reason)
- (session.log or log)("info", "BOSH client disconnected");
+ (session.log or log)("info", "BOSH client disconnected: %s", tostring((reason and reason.condition or reason) or "session close"));
local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
["xmlns:stream"] = xmlns_streams });