Don't check for debug mode too early
Otherwise we can't enable it during operation
This commit is contained in:
parent
4eb6df92c6
commit
3c988240d1
6
dist/converse.js
vendored
6
dist/converse.js
vendored
@ -63562,15 +63562,17 @@ function setUpXMLLogging() {
|
||||
_converse.log(msg, level);
|
||||
};
|
||||
|
||||
if (_converse.debug) {
|
||||
_converse.connection.xmlInput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.DEBUG, 'color: darkgoldenrod');
|
||||
}
|
||||
};
|
||||
|
||||
_converse.connection.xmlOutput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.DEBUG, 'color: darkcyan');
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function finishInitialization() {
|
||||
|
@ -441,14 +441,16 @@ function setUpXMLLogging () {
|
||||
Strophe.log = function (level, msg) {
|
||||
_converse.log(msg, level);
|
||||
};
|
||||
if (_converse.debug) {
|
||||
_converse.connection.xmlInput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkgoldenrod');
|
||||
}
|
||||
};
|
||||
_converse.connection.xmlOutput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkcyan');
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
6
src/headless/dist/converse-headless.js
vendored
6
src/headless/dist/converse-headless.js
vendored
@ -42074,15 +42074,17 @@ function setUpXMLLogging() {
|
||||
_converse.log(msg, level);
|
||||
};
|
||||
|
||||
if (_converse.debug) {
|
||||
_converse.connection.xmlInput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.DEBUG, 'color: darkgoldenrod');
|
||||
}
|
||||
};
|
||||
|
||||
_converse.connection.xmlOutput = function (body) {
|
||||
if (_converse.debug) {
|
||||
_converse.log(body.outerHTML, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.DEBUG, 'color: darkcyan');
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function finishInitialization() {
|
||||
|
Loading…
Reference in New Issue
Block a user