diff --git a/scripts/install.js b/scripts/install.js index 2313210bb..ce2a21668 100644 --- a/scripts/install.js +++ b/scripts/install.js @@ -48,7 +48,7 @@ function download(url, dest, cb) { return response.statusCode >= 200 && response.statusCode < 300; }; - console.log('Start downloading binary at', url); + log.http('node-sass install', 'Start downloading binary at' + url); try { request(url, downloadOptions(), function(err, response) { @@ -98,17 +98,17 @@ function checkAndDownloadBinary() { mkdir(path.dirname(sass.getBinaryPath()), function(err) { if (err) { - console.error(err); + log.error('node-sass install', err); return; } download(sass.getBinaryUrl(), sass.getBinaryPath(), function(err) { if (err) { - console.error(err); + log.error('node-sass install', err); return; } - console.log('Binary downloaded and installed at', sass.getBinaryPath()); + log.info('node-sass install', 'Binary downloaded and installed at' + sass.getBinaryPath()); }); }); } @@ -118,7 +118,7 @@ function checkAndDownloadBinary() { */ if (process.env.SKIP_SASS_BINARY_DOWNLOAD_FOR_CI) { - console.log('Skipping downloading binaries on CI builds'); + log.info('node-sass install', 'Skipping downloading binaries on CI builds'); return; }