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

Commit fa4515d

Browse files
committed
Always log to stdout
1 parent bee91ae commit fa4515d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

scripts/build.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ function afterBuild(options) {
2929
'binding.node');
3030

3131
mkdir(path.dirname(install), function(err) {
32-
log.stream = process.stderr;
33-
3432
if (err && err.code !== 'EEXIST') {
3533
log.error('node-sass build', err.message);
3634
return;
@@ -48,7 +46,6 @@ function afterBuild(options) {
4846
return;
4947
}
5048

51-
log.stream = process.stdout;
5249
log.info('node-sass build', 'Installed to %s', install);
5350
});
5451
});
@@ -133,7 +130,6 @@ function installGitDependencies(options, cb) {
133130
function build(options) {
134131
installGitDependencies(options, function(err) {
135132
if (err) {
136-
log.stream = process.stderr;
137133
log.error('node-sass build', err.message);
138134
process.exit(1);
139135
}
@@ -155,8 +151,6 @@ function build(options) {
155151
return;
156152
}
157153

158-
log.stream = process.stderr;
159-
160154
if (errorCode === 127) {
161155
log.error('node-sass build', 'node-gyp not found!');
162156
} else {

scripts/install.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ function checkAndDownloadBinary() {
112112
try {
113113
mkdir.sync(path.dirname(binaryPath));
114114
} catch (err) {
115-
log.stream = process.stderr;
116115
log.error('node-sass install', 'Unable to save binary to %s: %s', path.dirname(binaryPath), err);
117116
return;
118117
}
@@ -125,7 +124,6 @@ function checkAndDownloadBinary() {
125124

126125
download(sass.getBinaryUrl(), binaryPath, function(err) {
127126
if (err) {
128-
log.stream = process.stderr;
129127
log.error('node-sass install', err);
130128
return;
131129
}

0 commit comments

Comments
 (0)