Software /
code /
prosody
Changeset
8743:81929cfe7f86
mod_bosh: Improve logging on session close (reason may be a table with params)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 20:25:12 +0100 |
parents | 8742:71939a65961e |
children | 8744:0f4a4d8ac3dd |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Apr 10 20:23:54 2018 +0200 +++ b/plugins/mod_bosh.lua Tue Apr 10 20:25:12 2018 +0100 @@ -210,7 +210,7 @@ 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 });