make it easier to filter clientside logs

pull/1/head
ansuz 5 years ago
parent a3eff2728e
commit 26faf72df8

@ -158,7 +158,7 @@ define([
var done = function () { var done = function () {
clearTimeout(timeout); clearTimeout(timeout);
if (btime) { if (btime) {
console.log("Compiling [" + url + "] took " + (+new Date() - btime) + "ms"); console.info("Compiling [" + url + "] took " + (+new Date() - btime) + "ms");
} }
cb(); cb();
}; };

@ -1346,7 +1346,7 @@ define([
console.log(parsed); console.log(parsed);
return; return;
} else { } else {
console.log(parsed); //console.log(parsed);
} }
Util.fetch(parsed.href, waitFor(function (err, arraybuffer) { Util.fetch(parsed.href, waitFor(function (err, arraybuffer) {
if (err) { return void console.log(err); } if (err) { return void console.log(err); }

@ -52,7 +52,7 @@ define(['/api/config'], function (ApiConfig) {
}; };
var createFavicon = function () { var createFavicon = function () {
console.log("creating favicon"); console.debug("creating favicon");
var fav = document.createElement('link'); var fav = document.createElement('link');
var attrs = { var attrs = {
id: 'favicon', id: 'favicon',

@ -126,7 +126,7 @@ define([
var onMessage = function (data) { var onMessage = function (data) {
// data = { type: 'type', content: {msg: 'msg', hash: 'hash'} } // data = { type: 'type', content: {msg: 'msg', hash: 'hash'} }
console.log(data.type, data.content); console.debug(data.type, data.content);
pushMessage(data); pushMessage(data);
if (!history[data.type]) { history[data.type] = []; } if (!history[data.type]) { history[data.type] = []; }
history[data.type].push(data.content); history[data.type].push(data.content);

Loading…
Cancel
Save