mod_csi_simple: Log reasons for not flushing

This commit is contained in:
Kim Alvefur 2020-05-07 23:02:47 +02:00
parent a9ba50343c
commit b2baba1124

View file

@ -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;