Changeset

4013:e1e337dc05b6

mod_csi_grace_period: Report reason for importance decision
author Kim Alvefur <zash@zash.se>
date Sat, 09 May 2020 21:14:36 +0200
parents 4012:fd582067c732
children 4014:1b68954a743a
files mod_csi_grace_period/mod_csi_grace_period.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_csi_grace_period/mod_csi_grace_period.lua	Sun Mar 29 15:09:25 2020 +0200
+++ b/mod_csi_grace_period/mod_csi_grace_period.lua	Sat May 09 21:14:36 2020 +0200
@@ -24,6 +24,7 @@
 		end
 		if (os.time() - user_session.grace_time_start) < grace_period then
 			session.log("debug", "Within grace period, probably seen");
+			event.reason = "grace period";
 			return false;
 		end
 	end