Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 10808:0d365c0ee9fe
mod_csi_simple: Log reasons for not flushing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 07 May 2020 23:02:47 +0200 |
parent | 10807:b92afa0a4119 |
child | 10817:7c503938ce1d |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Thu May 07 22:56:30 2020 +0200 +++ b/plugins/mod_csi_simple.lua Thu May 07 23:02:47 2020 +0200 @@ -104,6 +104,7 @@ session.log("debug", "Flushing buffer (%s; queue size is %d)", why or "important", session.csi_counter); session.conn:resume_writes(); else + session.log("debug", "Holding buffer (%s; queue size is %d)", why or "unimportant", session.csi_counter); stanza = with_timestamp(stanza, jid.join(session.username, session.host)) end session.csi_counter = ctr + 1;