Skip to content

Commit

Permalink
Switch from console.log to npmlog (sass#1786)
Browse files Browse the repository at this point in the history
Change console.log to npmlog
  • Loading branch information
mcdado authored and marvinhagemeister committed Nov 13, 2016
1 parent 71b1446 commit 0d15fd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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());
});
});
}
Expand All @@ -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;
}

Expand Down

0 comments on commit 0d15fd8

Please sign in to comment.