From: Javier Casas Date: Fri, 11 Nov 2016 15:45:03 +0000 (-0500) Subject: Don't console.log unless it is needed X-Git-Tag: 2.0.2~1^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=91046f11bc9c847a76128593acfc16b285fe4fe1;p=github%2Ffretlink%2Fpurs-loader.git Don't console.log unless it is needed --- 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)