# HG changeset patch # User Matthew Wild # Date 1222806055 -3600 # Node ID aaccbf07849b16d03e360ab67404ae293b529381 # Parent bcf539295f2df6de92d581777cab32ae60657108 Remove now useless debug output diff -r bcf539295f2d -r aaccbf07849b core/stanza_router.lua --- a/core/stanza_router.lua Tue Sep 30 19:52:00 2008 +0100 +++ b/core/stanza_router.lua Tue Sep 30 21:20:55 2008 +0100 @@ -34,7 +34,6 @@ -- Stanza is to this server, or a user on this server log("debug", "Routing stanza to local"); - print(type(origin), type(stanza)); handle_stanza(session, stanza); end end diff -r bcf539295f2d -r aaccbf07849b core/xmlhandlers.lua --- a/core/xmlhandlers.lua Tue Sep 30 19:52:00 2008 +0100 +++ b/core/xmlhandlers.lua Tue Sep 30 21:20:55 2008 +0100 @@ -28,12 +28,11 @@ local stanza function xml_handlers:StartElement(name, attr) if stanza and #chardata > 0 then + -- We have some character data in the buffer stanza:text(t_concat(chardata)); - print("Char data:", t_concat(chardata)); chardata = {}; end curr_ns,name = name:match("^(.+):(%w+)$"); - print("Tag received:", name, tostring(curr_ns)); if not stanza then if session.notopen then if name == "stream" then @@ -70,15 +69,13 @@ end function xml_handlers:EndElement(name) curr_ns,name = name:match("^(.+):(%w+)$"); - --print("<"..name.."/>", tostring(stanza), tostring(#stanza.last_add < 1), tostring(stanza.last_add[#stanza.last_add].name)); if (not stanza) or #stanza.last_add < 0 or (#stanza.last_add > 0 and name ~= stanza.last_add[#stanza.last_add].name) then error("XML parse error in client stream"); end if stanza and #chardata > 0 then + -- We have some character data in the buffer stanza:text(t_concat(chardata)); - print("Char data:", t_concat(chardata)); chardata = {}; end -- Complete stanza - print(name, tostring(#stanza.last_add)); if #stanza.last_add == 0 then session.stanza_dispatch(stanza); stanza = nil;