From 5cd28ff71b04625005c746ad528ab6209c09991c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bonveh=C3=AD?= Date: Thu, 22 Jan 2015 17:38:36 -0300 Subject: [PATCH] Strophe.log and .error now calls converse.log, this honors converse.debug flag --- converse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converse.js b/converse.js index f9bf4a1d7..a6a8b2446 100644 --- a/converse.js +++ b/converse.js @@ -163,8 +163,8 @@ var converse = this; // Logging - Strophe.log = function (level, msg) { console.log(level+' '+msg); }; - Strophe.error = function (msg) { console.log('ERROR: '+msg); }; + Strophe.log = function (level, msg) { converse.log(level+' '+msg, level); }; + Strophe.error = function (msg) { converse.log(msg, 'error'); }; // Add Strophe Namespaces Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates');