diff mod_muc_rai/mod_muc_rai.lua @ 4543:9377b5593cc7

mod_statistics_statsd: Remove obsolete module, use the newer built-in statsd provider
author Matthew Wild <mwild1@gmail.com>
date Sat, 17 Apr 2021 12:51:50 +0100
parents 6690586826e8
children
line wrap: on
line diff
--- a/mod_muc_rai/mod_muc_rai.lua	Tue Apr 13 23:53:53 2021 +0200
+++ b/mod_muc_rai/mod_muc_rai.lua	Sat Apr 17 12:51:50 2021 +0100
@@ -95,6 +95,7 @@
 local function get_last_room_message_id(room_jid)
 	local last_room_message_id = room_activity_cache:get(room_jid);
 	if last_room_message_id then
+		module:log("debug", "Last room message: %s (cached)", last_room_message_id);
 		return last_room_message_id;
 	end
 
@@ -113,6 +114,7 @@
 
 	local id = data();
 	room_activity_cache:set(room_jid, id);
+	module:log("debug", "Last room message: %s (queried)", id);
 	return id;
 end