Log TriggerIndexingWorker task argument for debugging

What does this MR do and why?

Logs the first argument of TriggerIndexingWorker which is the task. This makes debugging easier if a step of reindexing fails. Currently the log looks like:

"class":"Search::Elastic::TriggerIndexingWorker","args":["[FILTERED]","[FILTERED]"]

With this change we can see which task step we're at:

"args":["projects","[FILTERED]"],"class":"Search::Elastic::TriggerIndexingWorker"
"args":["snippets","[FILTERED]"],"class":"Search::Elastic::TriggerIndexingWorker"
"args":["users","[FILTERED]"],"class":"Search::Elastic::TriggerIndexingWorker"

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Madelein van Niekerk

Merge request reports

Loading