Avoid a lot of newlines when running from source
parent
9cf6d28996
commit
77a0d77003
|
@ -61,12 +61,12 @@ function startServer() {
|
||||||
|
|
||||||
proc.stdout.on('data', data => {
|
proc.stdout.on('data', data => {
|
||||||
// Log everything
|
// Log everything
|
||||||
console.log(data.toString());
|
process.stdout.write(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Log errors
|
// Log errors
|
||||||
proc.stderr.on('data', data => {
|
proc.stderr.on('data', data => {
|
||||||
console.error(data.toString());
|
process.stderr.write(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
proc.on('exit', (code) => process.exit(code));
|
proc.on('exit', (code) => process.exit(code));
|
||||||
|
|
Loading…
Reference in New Issue