Skip to content

Commit

Permalink
Include job ID in the output of the queue:work Artisan command (#21204)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwt137 authored and taylorotwell committed Sep 18, 2017
1 parent 2ec2e30 commit 5bfedaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ protected function writeOutput(Job $job, $status)
protected function writeStatus(Job $job, $status, $type)
{
$this->output->writeln(sprintf(
"<{$type}>[%s] %s</{$type}> %s",
"<{$type}>[%s][%s] %s</{$type}> %s",
Carbon::now()->format('Y-m-d H:i:s'),
$job->getJobId(),
str_pad("{$status}:", 11), $job->resolveName()
));
}
Expand Down

0 comments on commit 5bfedaa

Please sign in to comment.