Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Change console.log to npmlog
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdado committed Nov 6, 2016
1 parent b15f0cd commit 00e9a4e
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('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(err);
return;
}

download(sass.getBinaryUrl(), sass.getBinaryPath(), function(err) {
if (err) {
console.error(err);
log.error(err);
return;
}

console.log('Binary downloaded and installed at', sass.getBinaryPath());
log.info('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('Skipping downloading binaries on CI builds');
return;
}

Expand Down

0 comments on commit 00e9a4e

Please sign in to comment.