Skip to content
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

[9.x] Restore job id in worker command logs #43305

Closed

Conversation

L3o-pold
Copy link

This PR restore the job id in worker command log that was removed in #43065.
I think it's important to display the job id for better debugging.

Previous logs looks like:

2022-07-20 07:40:51 App\Jobs\Mobile\Posted .................... 22.32ms DONE

New log looks like:

2022-07-20 08:12:57 ea280c14-90ee-4ec0-ba1f-b7237291371f App\Jobs\SetUserAway  25.57ms DONE

@L3o-pold L3o-pold force-pushed the restore-job-id-in-worker-command-logs branch from 87d28b9 to fa45c61 Compare July 20, 2022 08:21
@timrspratt
Copy link
Contributor

Maybe this extra info should only be outputted if the verbose level was passed?

Alternative might be to do what GitHub do with commit hashes, and only show the first part - the whole thing is long and does someone ruin the cleanliness of the new layout imo.

@L3o-pold
Copy link
Author

I'm open to the discussion here, if we agree that we should print it only on verbose level I think it's ok.

I just think it's sad to remove it completely. I don't think I am the only user that used this information to debug things prior v9.21.0 .

@taylorotwell
Copy link
Member

Yeah this feels like something for verbose mode? Will mark as draft for now.

@taylorotwell taylorotwell marked this pull request as draft July 20, 2022 12:47
@L3o-pold L3o-pold closed this Jul 20, 2022
@L3o-pold L3o-pold deleted the restore-job-id-in-worker-command-logs branch July 20, 2022 15:07
@L3o-pold L3o-pold restored the restore-job-id-in-worker-command-logs branch July 20, 2022 15:25
@L3o-pold L3o-pold deleted the restore-job-id-in-worker-command-logs branch July 20, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants