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

Commit

Permalink
Always log to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Nov 15, 2016
1 parent bee91ae commit fa4515d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ function afterBuild(options) {
'binding.node');

mkdir(path.dirname(install), function(err) {
log.stream = process.stderr;

if (err && err.code !== 'EEXIST') {
log.error('node-sass build', err.message);
return;
Expand All @@ -48,7 +46,6 @@ function afterBuild(options) {
return;
}

log.stream = process.stdout;
log.info('node-sass build', 'Installed to %s', install);
});
});
Expand Down Expand Up @@ -133,7 +130,6 @@ function installGitDependencies(options, cb) {
function build(options) {
installGitDependencies(options, function(err) {
if (err) {
log.stream = process.stderr;
log.error('node-sass build', err.message);
process.exit(1);
}
Expand All @@ -155,8 +151,6 @@ function build(options) {
return;
}

log.stream = process.stderr;

if (errorCode === 127) {
log.error('node-sass build', 'node-gyp not found!');
} else {
Expand Down
2 changes: 0 additions & 2 deletions scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ function checkAndDownloadBinary() {
try {
mkdir.sync(path.dirname(binaryPath));
} catch (err) {
log.stream = process.stderr;
log.error('node-sass install', 'Unable to save binary to %s: %s', path.dirname(binaryPath), err);
return;
}
Expand All @@ -125,7 +124,6 @@ function checkAndDownloadBinary() {

download(sass.getBinaryUrl(), binaryPath, function(err) {
if (err) {
log.stream = process.stderr;
log.error('node-sass install', err);
return;
}
Expand Down

0 comments on commit fa4515d

Please sign in to comment.