Changeset

9920:4a56d7891bd3

mod_csi_simple: Add some debug logging
author Kim Alvefur <zash@zash.se>
date Sun, 24 Mar 2019 20:53:49 +0100
parents 9919:d602a495409b
children 9921:ec138e4254ed
files plugins/mod_csi_simple.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua	Sun Mar 24 20:43:15 2019 +0100
+++ b/plugins/mod_csi_simple.lua	Sun Mar 24 20:53:49 2019 +0100
@@ -71,6 +71,7 @@
 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 @@
 	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);