Software /
code /
prosody
Changeset
725:96110075288b
Replacing pretty_print() with top_tag() for logging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 04:37:16 +0000 |
parents | 724:8beae443867f |
children | 726:68a776711ba9 |
files | core/stanza_router.lua plugins/mod_bosh.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Fri Jan 16 04:19:47 2009 +0000 +++ b/core/stanza_router.lua Fri Jan 16 04:37:16 2009 +0000 @@ -56,7 +56,7 @@ 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)
--- a/plugins/mod_bosh.lua Fri Jan 16 04:19:47 2009 +0000 +++ b/plugins/mod_bosh.lua Fri Jan 16 04:37:16 2009 +0000 @@ -213,7 +213,7 @@ 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