-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ililic
|
||
return false; | ||
|
||
var args = Array.prototype.slice.call(arguments); | ||
var type = null, | ||
sign, | ||
|
Where is "fnName" defined? It seems that it's undefined.