aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-24 20:53:49 +0100
committerKim Alvefur <zash@zash.se>2019-03-24 20:53:49 +0100
commit684a26f5be5a29e4d8eb82af0f9b2d9a87f98267 (patch)
tree49193d3fb619c911bf878c42e76dbd3a9f1a345c /plugins
parente887ed5cad52d2853ba66dfe1a7ec0762f4624df (diff)
downloadprosody-684a26f5be5a29e4d8eb82af0f9b2d9a87f98267.tar.gz
prosody-684a26f5be5a29e4d8eb82af0f9b2d9a87f98267.zip
mod_csi_simple: Add some debug logging
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua2
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);