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

Add info of job name in the failed jobs logs #2454

Open
lucas-clementei1 opened this issue Oct 8, 2024 · 0 comments · May be fixed by #2455
Open

Add info of job name in the failed jobs logs #2454

lucas-clementei1 opened this issue Oct 8, 2024 · 0 comments · May be fixed by #2455

Comments

@lucas-clementei1
Copy link

lucas-clementei1 commented Oct 8, 2024

Hello :)

I'd like to add some info about the Job name in the failed jobs logs :
Something like this ⬇️

From :

                         _logger.ErrorException(
                        $"Failed to process the job '{context.BackgroundJob.Id}': an exception occurred.",
                        failedState.Exception);

To :

                        _logger.ErrorException(
                        $"Failed to process the job '{context.BackgroundJob.Job?.Type.Name}' with id '{context.BackgroundJob.Id}': an exception occurred.",
                        failedState.Exception);

Is it possible ? I have a branch already ready in local if you want, but I can't create a PR (I'm pretty new, feel free to tell me if it's not the correct way of asking :) )

Thank you in advance

@lucas-clementei1 lucas-clementei1 linked a pull request Oct 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant