diff --git a/scripts/install.js b/scripts/install.js index 867d43d52..573898cc8 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; }; - log.http('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) { - log.error(err); + log.error('node-sass install', err); return; } download(sass.getBinaryUrl(), sass.getBinaryPath(), function(err) { if (err) { - log.error(err); + log.error('node-sass install', err); return; } - log.info('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) { - log.info('Skipping downloading binaries on CI builds'); + log.info('node-sass install', 'Skipping downloading binaries on CI builds'); return; }