From d8c29c7e3f0230a20e373c00a549712416ab0886 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 29 Jun 2015 11:57:37 +0200 Subject: [PATCH] Make sure text is logged instead of XML. Otherwise the log output is truncated when people copy paste from the console (for bug reports). updates #431 --- converse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converse.js b/converse.js index 48c9b5202..9e7e65bcc 100644 --- a/converse.js +++ b/converse.js @@ -5680,8 +5680,8 @@ this.setUpXMLLogging = function () { if (this.debug) { - this.connection.xmlInput = function (body) { console.log(body); }; - this.connection.xmlOutput = function (body) { console.log(body); }; + this.connection.xmlInput = function (body) { console.log(body.outerHTML); }; + this.connection.xmlOutput = function (body) { console.log(body.outerHTML); }; } };