diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-04-10 20:25:12 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-04-10 20:25:12 +0100 |
commit | f537f1572c3ba43d9b63f8d545b849c24312462b (patch) | |
tree | f0f62c45edcb015a93a6d42f4800426241e2f45e /plugins | |
parent | 5d2a541a3ddabdc146615ffd1c1de8475e64fca7 (diff) | |
download | prosody-f537f1572c3ba43d9b63f8d545b849c24312462b.tar.gz prosody-f537f1572c3ba43d9b63f8d545b849c24312462b.zip |
mod_bosh: Improve logging on session close (reason may be a table with params)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
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 }); |