浏览代码

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
JC Brand 10 年之前
父节点
当前提交
d8c29c7e3f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      converse.js

+ 2 - 2
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); };
             }
         };