Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
don’t buffer logs
Browse files Browse the repository at this point in the history
auditors @bbondy
  • Loading branch information
bridiver committed Mar 30, 2017
1 parent 53582b4 commit 02ecb3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ const spawn = require('child_process').spawn
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
const options = {
env: process.env,
stdio: 'inherit',
shell: true
}
const electron = spawn('electron', [path.join(__dirname, '..')].concat(process.argv.slice(2)), options)

electron.stdout.pipe(process.stdout)
electron.stderr.pipe(process.stderr)

electron.on('error', (err) => {
console.error(`could not start electron ${err}`)
})
Expand Down

0 comments on commit 02ecb3a

Please sign in to comment.