Skip to content

Commit

Permalink
attempt-backport: enable/add debug info for prod
Browse files Browse the repository at this point in the history
Refs: #100
  • Loading branch information
Fishrock123 committed Dec 8, 2016
1 parent 4963c6f commit 279ce2b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/attempt-backport.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ function attemptBackport (options, version, isLTS, cb) {
callback()
})
// Useful when debugging.
//
// cp.stdout.on('data', (data) => {
// console.log(data.toString())
// })
// cp.stderr.on('data', (data) => {
// console.log(data.toString())
// })

cp.stdout.on('data', (data) => {
console.log(data.toString())
})
cp.stderr.on('data', (data) => {
console.log(data.toString())
})

return cp
}
Expand Down Expand Up @@ -215,6 +215,8 @@ function attemptBackport (options, version, isLTS, cb) {
})
})

req.on('data', (chunk) => process.stdout.write(chunk.toString()))

req.pipe(cp.stdin)
}
}

0 comments on commit 279ce2b

Please sign in to comment.