mirror of
https://github.com/danbulant/koa-plugins
synced 2026-05-19 04:08:43 +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,7 +6,8 @@ const chalk = require("chalk");
|
|||
console = (function(oldCons){
|
||||
return {
|
||||
log: function(...text){
|
||||
oldCons.log(...text);
|
||||
if(argv.verbose)
|
||||
oldCons.log(...text);
|
||||
},
|
||||
info: function(...text){
|
||||
oldCons.info("[INFO]", ...text);
|
||||
|
|
|
|||
Loading…
Reference in a new issue