Jelajahi Sumber

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 tahun lalu
induk
melakukan
d8c29c7e3f
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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); };
             }
         };