Преглед на файлове

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