diff options
-rw-r--r-- | core/stanza_router.lua | 2 | ||||
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 4704625b..e94d3c34 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -56,7 +56,7 @@ local function checked_error_reply(origin, stanza) end function core_process_stanza(origin, stanza) - (origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:pretty_print()) --top_tag()) + (origin.log or log)("debug", "Received[%s]: %s", origin.type, top_tag()) if not stanza.attr.xmlns then stanza.attr.xmlns = "jabber:client"; end -- FIXME Hack. This should be removed when we fix namespace handling. -- TODO verify validity of stanza (as well as JID validity) diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index b5951e96..223fe2ba 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -213,7 +213,7 @@ function stream_callbacks.streamopened(request, attr) end function stream_callbacks.handlestanza(request, stanza) - log("debug", "BOSH stanza received: %s\n", stanza:pretty_print()); + log("debug", "BOSH stanza received: %s\n", stanza:top_tag()); local session = sessions[request.sid]; if session then if stanza.attr.xmlns == xmlns_bosh then |