aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 04:46:48 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 04:46:48 +0000
commit87edc64c11a5f38229c915f32165bccd2de65a84 (patch)
treea5110a990ba29130db6db303de6d68f18be9e9f6 /core
parent2b75fe3807dcaa4aeafbe8adb864c8540933e8e3 (diff)
downloadprosody-87edc64c11a5f38229c915f32165bccd2de65a84.tar.gz
prosody-87edc64c11a5f38229c915f32165bccd2de65a84.zip
stanza_router: Don't log full stanzas destined for s2s
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 00c37ed7..ad312b85 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -180,7 +180,7 @@ function core_route_stanza(origin, stanza)
local xmlns = stanza.attr.xmlns;
--stanza.attr.xmlns = "jabber:server";
stanza.attr.xmlns = nil;
- log("debug", "sending s2s stanza: %s", tostring(stanza));
+ log("debug", "sending s2s stanza: %s", tostring(stanza.top_tag and stanza:top_tag()) or stanza);
send_s2s(origin.host, host, stanza); -- TODO handle remote routing errors
stanza.attr.xmlns = xmlns; -- reset
else