From bfc82913d197bbb59d127d0b2757b1410eaa5da2 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sun, 22 Jul 2018 19:44:58 +0200
Subject: core.stanza_router: Reduce logging of common routing (#776)

---
 core/stanza_router.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 49fe747c..5caa22f6 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -207,7 +207,6 @@ function core_route_stanza(origin, stanza)
 		-- old stanza routing code removed
 		core_post_stanza(origin, stanza);
 	else
-		log("debug", "Routing to remote...");
 		local host_session = hosts[from_host];
 		if not host_session then
 			log("error", "No hosts[from_host] (please report): %s", tostring(stanza));
@@ -218,7 +217,7 @@ function core_route_stanza(origin, stanza)
 				origin = origin, stanza = stanza, from_host = from_host, to_host = host });
 			stanza.attr.xmlns = xmlns; -- reset
 			if not routed then
-				log("debug", "... no, just kidding.");
+				log("debug", "Could not route stanza to remote");
 				if stanza.attr.type == "error" or (stanza.name == "iq" and stanza.attr.type == "result") then return; end
 				core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed",
 					"Communication with remote domains is not enabled"));
-- 
cgit v1.2.3