From 14e969b0cd7ba48c721f70d116f4ca3cd2a89b99 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 2 Mar 2020 19:32:52 +0100 Subject: [PATCH] Log only when in verbose mode --- bin/koa.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/koa.js b/bin/koa.js index 6ebdc51..6e4a024 100644 --- a/bin/koa.js +++ b/bin/koa.js @@ -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);