aboutsummaryrefslogtreecommitdiffstats
path: root/core/xmlhandlers.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-09-30 21:20:55 +0100
committerMatthew Wild <mwild1@gmail.com>2008-09-30 21:20:55 +0100
commit55e1d561e71a2a49cec3bf424ce5f5197586ee9f (patch)
tree088f2835c34c8b99d941206041ff74262a8c7df2 /core/xmlhandlers.lua
parenta53395e6b72ac0abad00123e1d07b3504f585e08 (diff)
downloadprosody-55e1d561e71a2a49cec3bf424ce5f5197586ee9f.tar.gz
prosody-55e1d561e71a2a49cec3bf424ce5f5197586ee9f.zip
Remove now useless debug output
Diffstat (limited to 'core/xmlhandlers.lua')
-rw-r--r--core/xmlhandlers.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua
index f731d3d5..96e3f3ac 100644
--- a/core/xmlhandlers.lua
+++ b/core/xmlhandlers.lua
@@ -28,12 +28,11 @@ function init_xmlhandlers(session)
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 @@ function init_xmlhandlers(session)
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;