Changeset

4320:8fc16174fec6

mod_cache_c2s_caps: log full JID on all relevant code paths
author Georg Lukas <georg@op-co.de>
date Fri, 22 May 2020 09:47:42 +0200
parents 4319:caaa40f072da
children 4321:71498f484c22
files mod_cache_c2s_caps/mod_cache_c2s_caps.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cache_c2s_caps/mod_cache_c2s_caps.lua	Wed Jan 06 13:48:49 2021 +0100
+++ b/mod_cache_c2s_caps/mod_cache_c2s_caps.lua	Fri May 22 09:47:42 2020 +0200
@@ -68,7 +68,7 @@
 
 	local caps = stanza:get_child("c", "http://jabber.org/protocol/caps");
 	if caps == nil then
-		origin.log("debug", "Presence without caps received, skipping");
+		origin.log("debug", "Presence from %s without caps received, skipping", from);
 		return;
 	end
 
@@ -79,7 +79,7 @@
 		return;
 	end
 	if hash ~= "sha-1" then
-		origin.log("warn", "Non-SHA-1 caps received: %s", hash);
+		origin.log("warn", "Presence from %s with non-SHA-1 caps : %s", from, hash);
 		return;
 	end
 
@@ -89,7 +89,7 @@
 		return;
 	end
 
-	origin.log("debug", "Received presence from %s with SHA-1 caps %s, querying disco#info", from, node_query);
+	origin.log("debug", "Presence from %s with SHA-1 caps %s, querying disco#info", from, node_query);
 
 	local id = uuid_gen();
 	iq_node_map[from..id] = node_query