aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-07 23:02:47 +0200
committerKim Alvefur <zash@zash.se>2020-05-07 23:02:47 +0200
commitb2baba11247243446e60bea10884d2d2193e9f48 (patch)
treea5256eff6054f2b59ca68098ff723fb2d8fbd9dd
parenta9ba50343ca6fc47d8bf50b0714ca943f38b1410 (diff)
downloadprosody-b2baba11247243446e60bea10884d2d2193e9f48.tar.gz
prosody-b2baba11247243446e60bea10884d2d2193e9f48.zip
mod_csi_simple: Log reasons for not flushing
-rw-r--r--plugins/mod_csi_simple.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 6274dcb3..bb8f757a 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -104,6 +104,7 @@ local function manage_buffer(stanza, session)
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;