Fix logger messages in upgrade MR script

What does this MR do and why?

Fix logger messages in upgrade MR script

In !205381 (merged), JSON logging was introduced to this upgrade MR script, however it looks like the .info and .error methods from the logger class as per the logging guidelines. This causes an issue in the release environment MR label step (example job: https://gitlab.com/gitlab-org/security/gitlab/-/jobs/12255211300). This MR fixes this issue.

References

N/A

Screenshots or screen recordings

image

This is the smallest reproducible example illustrating the issues we've been getting.

How to set up and validate locally

Since this does not run in the Rails environment, this was verified with an alpine Ruby docker image matching the version run in the pipeline (ruby:3.1-alpine).

MR acceptance checklist

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 Akinyele Cafe-Febrissy

Merge request reports

Loading