Skip to content

Commit 2da6913

Browse files
authored
[Bref] Fix console runner output (#64)
1 parent 745b7a0 commit 2da6913

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ConsoleApplicationRunner.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ public function run(): int
3737
$output = new BufferedOutput();
3838
$exitCode = $this->application->run($input, $output);
3939

40+
$content = $output->fetch();
4041
// Echo the output so that it is written to CloudWatch logs
41-
echo $output->fetch();
42+
echo $content;
4243

4344
if ($exitCode > 0) {
4445
throw new \Exception('The command exited with a non-zero status code: '.$exitCode);
4546
}
4647

4748
return [
4849
'exitCode' => $exitCode, // will always be 0
49-
'output' => $output->fetch(),
50+
'output' => $content,
5051
];
5152
});
5253
}

0 commit comments

Comments
 (0)