ejabberdsql2prosody: Allow for multiple INSERTs to the same table
[prosody.git] / net / xmppclient_listener.lua
index cc65ff75d930504699be8e7a3faa6f7c2c03d9ba..e882546f265cbf256ccd76d1deb24f61e713983f 100644 (file)
@@ -61,6 +61,7 @@ local function session_reset_stream(session)
                function session.data(conn, data)
                        local ok, err = parser:parse(data);
                        if ok then return; end
+                       log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "));
                        session:close("xml-not-well-formed");
                end