From 26faf72df8fbb857bd0bcaa9ca21eeb0934133df Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 9 Sep 2019 17:23:35 +0200 Subject: [PATCH] make it easier to filter clientside logs --- www/common/LessLoader.js | 2 +- www/common/cryptpad-common.js | 2 +- www/common/notify.js | 2 +- www/common/sframe-common-mailbox.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/common/LessLoader.js b/www/common/LessLoader.js index 4817d5a25..c04006e12 100644 --- a/www/common/LessLoader.js +++ b/www/common/LessLoader.js @@ -158,7 +158,7 @@ define([ var done = function () { clearTimeout(timeout); if (btime) { - console.log("Compiling [" + url + "] took " + (+new Date() - btime) + "ms"); + console.info("Compiling [" + url + "] took " + (+new Date() - btime) + "ms"); } cb(); }; diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 1cdfda3e9..e51a0b8be 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1346,7 +1346,7 @@ define([ console.log(parsed); return; } else { - console.log(parsed); + //console.log(parsed); } Util.fetch(parsed.href, waitFor(function (err, arraybuffer) { if (err) { return void console.log(err); } diff --git a/www/common/notify.js b/www/common/notify.js index dc5c19ad5..5b49de991 100644 --- a/www/common/notify.js +++ b/www/common/notify.js @@ -52,7 +52,7 @@ define(['/api/config'], function (ApiConfig) { }; var createFavicon = function () { - console.log("creating favicon"); + console.debug("creating favicon"); var fav = document.createElement('link'); var attrs = { id: 'favicon', diff --git a/www/common/sframe-common-mailbox.js b/www/common/sframe-common-mailbox.js index e468b29f1..a988ef003 100644 --- a/www/common/sframe-common-mailbox.js +++ b/www/common/sframe-common-mailbox.js @@ -126,7 +126,7 @@ define([ var onMessage = function (data) { // data = { type: 'type', content: {msg: 'msg', hash: 'hash'} } - console.log(data.type, data.content); + console.debug(data.type, data.content); pushMessage(data); if (!history[data.type]) { history[data.type] = []; } history[data.type].push(data.content);