diff options
author | Kim Alvefur <zash@zash.se> | 2019-03-24 20:53:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-03-24 20:53:49 +0100 |
commit | dd0258ff779f4ccc4da11a19c344d054ba7f8430 (patch) | |
tree | 49193d3fb619c911bf878c42e76dbd3a9f1a345c /plugins | |
parent | 0c520e8a39f380940ad216a228eb0624d85e02bd (diff) | |
download | prosody-dd0258ff779f4ccc4da11a19c344d054ba7f8430.tar.gz prosody-dd0258ff779f4ccc4da11a19c344d054ba7f8430.zip |
mod_csi_simple: Add some debug logging
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_csi_simple.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index d0de222e..ff1fa86c 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -71,6 +71,7 @@ local function manage_buffer(stanza, session) end local function flush_buffer(data, session) + session.log("debug", "Client sent something, flushing buffer once"); session.conn:resume_writes(); return data; end @@ -109,6 +110,7 @@ module:hook("c2s-ondrain", function (event) if session.state == "inactive" and session.conn and session.conn and session.conn.pause_writes then session.csi_counter = 0; session.conn:pause_writes(); + session.log("debug", "Buffer flushed, resuming inactive mode"); end end); |