Software /
code /
verse
Changeset
400:0db9cb909cf1
client, component: Fix logging of invalid XML
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 09 Feb 2016 23:39:31 +0000 |
parents | 399:82ad158714e5 |
children | 402:81b109281879 |
files | client.lua component.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client.lua Tue Jan 12 13:14:36 2016 +0000 +++ b/client.lua Tue Feb 09 23:39:31 2016 +0000 @@ -86,7 +86,7 @@ function self.data(conn, data) local ok, err = self.stream:feed(data); if ok then return; end - self:debug("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); + self:debug("Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); self:close("xml-not-well-formed"); end
--- a/component.lua Tue Jan 12 13:14:36 2016 +0000 +++ b/component.lua Tue Feb 09 23:39:31 2016 +0000 @@ -59,7 +59,7 @@ function self.data(conn, data) local ok, err = self.stream:feed(data); if ok then return; end - stream:debug("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); + stream:debug("Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); stream:close("xml-not-well-formed"); end