Skip to content

Commit

Permalink
fix(utils): output stdout, stderr with SLS_DEBUG on
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyhyun committed May 23, 2024
1 parent 3c691d7 commit e621d47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ function spawnProcess(command, args, options) {
// Listen to stream events
child.stdout.on('data', data => {
stdout += data;
if (process.env.SLS_DEBUG) process.stdout.write(data);
});
child.stderr.on('data', data => {
stderr += data;
if (process.env.SLS_DEBUG) process.stderr.write(data);
});
child.on('error', err => {
reject(err);
Expand Down

0 comments on commit e621d47

Please sign in to comment.