-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.4] use same output style for jobs as migrations #18773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slick
Would you mind adding tests for this? |
@tillkruss from what i can find, the current tests only check for the events being fired, nothing related to text output. |
And i currently do not see how a test would be written for this/wether it is required at all (the writeOutput function only gets called in the function i changed, from all the files in the entire framework) |
break; | ||
case 'failed': | ||
$this->output->writeln('<error>['.Carbon::now()->format('Y-m-d H:i:s').'] Failed:</error> '.$job->resolveName()); | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using str_pad()
here, might make this more readable.
I'll refractor it in a moment, good point @tillkruss |
@tillkruss I have updated the code the best i could, is it more readable now? |
See 2328c7a
And #18542