From 91046f11bc9c847a76128593acfc16b285fe4fe1 Mon Sep 17 00:00:00 2001 From: Javier Casas Date: Fri, 11 Nov 2016 10:45:03 -0500 Subject: [PATCH] Don't console.log unless it is needed --- src/Psc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psc.js b/src/Psc.js index 5954944..0aa9fe2 100644 --- a/src/Psc.js +++ b/src/Psc.js @@ -29,7 +29,7 @@ function compile(psModule) { debug('spawning compiler %s %o', options.psc, args) return (new Promise((resolve, reject) => { - console.log('\nCompiling PureScript...') + debug('\nCompiling PureScript...') const compilation = spawn(options.psc, args) @@ -37,7 +37,7 @@ function compile(psModule) { compilation.stderr.on('data', data => stderr.push(data.toString())) compilation.on('close', code => { - console.log('Finished compiling PureScript.') + debug('Finished compiling PureScript.') cache.compilationFinished = true if (code !== 0) { cache.errors = stderr.join('') @@ -74,7 +74,7 @@ function bundle(options, cache) { debug('spawning bundler %s %o', options.pscBundle, args.join(' ')) return (new Promise((resolve, reject) => { - console.log('Bundling PureScript...') + debug('Bundling PureScript...') const compilation = spawn(options.pscBundle, args) -- 2.41.0