Skip to content

Commit 6c319eb

Browse files
authored
Do not write to output if output is quiet or silent (#58024)
1 parent 71f44e3 commit 6c319eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Queue/Console/WorkCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ protected function listenForEvents()
214214
*/
215215
protected function writeOutput(Job $job, $status, ?Throwable $exception = null)
216216
{
217+
if ($this->output->isQuiet() || $this->output->isSilent()) {
218+
return;
219+
}
220+
217221
$this->outputUsingJson()
218222
? $this->writeOutputAsJson($job, $status, $exception)
219223
: $this->writeOutputForCli($job, $status);

0 commit comments

Comments
 (0)