mirror of
https://github.com/danbulant/koa-plugins
synced 2026-05-24 12:22:19 +00:00
Log only when in verbose mode
This commit is contained in:
parent
40aeb7d6a8
commit
14e969b0cd
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ const chalk = require("chalk");
|
||||||
console = (function(oldCons){
|
console = (function(oldCons){
|
||||||
return {
|
return {
|
||||||
log: function(...text){
|
log: function(...text){
|
||||||
|
if(argv.verbose)
|
||||||
oldCons.log(...text);
|
oldCons.log(...text);
|
||||||
},
|
},
|
||||||
info: function(...text){
|
info: function(...text){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue