# HG changeset patch # User Kim Alvefur # Date 1588885367 -7200 # Node ID 0d365c0ee9fef3ed5d78a8deeaf94ff7262b45d9 # Parent b92afa0a4119b1a4dc9d2b761ccb6a53c07028e9 mod_csi_simple: Log reasons for not flushing diff -r b92afa0a4119 -r 0d365c0ee9fe plugins/mod_csi_simple.lua --- 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;