Commit 40dd964c by David Gasperoni Committed by Michael Mifsud

Switch from console.log to npmlog (#1786)

Change console.log to npmlog
parent 2882d6b7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment