Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
d8c29c7e3f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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); };
             }
         };