# HG changeset patch # User Kim Alvefur # Date 1532281498 -7200 # Node ID f2a5d8eb04b3a28d0d0d0330f06fc9b0853fcb7e # Parent 1b272b51ae0fd4204d76d46de56ad218570dbd5a core.stanza_router: Reduce logging of common routing (#776) diff -r 1b272b51ae0f -r f2a5d8eb04b3 core/stanza_router.lua --- a/core/stanza_router.lua Sun Jul 22 19:41:29 2018 +0200 +++ b/core/stanza_router.lua Sun Jul 22 19:44:58 2018 +0200 @@ -207,7 +207,6 @@ -- 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 @@ 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"));