Skip to content

Commit

Permalink
Merge pull request #4643 from dschep/py-invoke-local-unbuffered
Browse files Browse the repository at this point in the history
Don't have Python buffer it's output in invoke local
  • Loading branch information
horike37 committed Jan 12, 2018
2 parents e95663a + 211ba71 commit c3258e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/aws/invokeLocal/index.js
Expand Up @@ -168,7 +168,7 @@ class AwsInvokeLocal {

return new BbPromise(resolve => {
const python = spawn(runtime,
[path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env });
['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env });
python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));
python.stderr.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));
python.stdin.write(input);
Expand Down

0 comments on commit c3258e1

Please sign in to comment.