# HG changeset patch # User Matthew Wild # Date 1455061171 0 # Node ID 0db9cb909cf18b0242f83d47e4b04c2fdbea6904 # Parent 82ad158714e54397f02c175252f648deaf37833b client, component: Fix logging of invalid XML diff -r 82ad158714e5 -r 0db9cb909cf1 client.lua --- 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 diff -r 82ad158714e5 -r 0db9cb909cf1 component.lua --- 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