less logging
This commit is contained in:
parent
33f6cd17e9
commit
946408f36e
@ -639,7 +639,7 @@ History.prototype.requiresUpdate = function()
|
||||
|
||||
History.prototype.getHistoryRequestRange = function()
|
||||
{
|
||||
if( this._items.length < 5 )
|
||||
if( this._items.length < 2 )
|
||||
return false;
|
||||
|
||||
var blocks = _.pluck( this._items, 'height' );
|
||||
|
@ -31,6 +31,15 @@ var typeColors = {
|
||||
'PIN': chalk.reset.bold.yellow,
|
||||
};
|
||||
|
||||
var verbosity = [
|
||||
[],
|
||||
['error'],
|
||||
['error', 'warn', 'success'],
|
||||
['info', 'error', 'warn', 'success', 'time', 'timeEnd']
|
||||
];
|
||||
|
||||
var ENV_VERBOSITY = process.env.VERBOSITY || 2;
|
||||
|
||||
[
|
||||
{
|
||||
name: "info",
|
||||
@ -102,6 +111,9 @@ var typeColors = {
|
||||
|
||||
console[item.name] = function ()
|
||||
{
|
||||
if(verbosity[ENV_VERBOSITY].indexOf(fnName) === -1)
|
||||
return false;
|
||||
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
var type = null,
|
||||
sign,
|
||||
|
Loading…
Reference in New Issue
Block a user