Standardize error field in log messages

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

From !73196 (merged):

I also found other instances where it can be a string here:

  1. https://gitlab.com/gitlab-org/gitlab/blob/24eabccb2928170a5555e0e6b167970b2e40b4c7/app/services/import/bitbucket_server_service.rb#L98

  2. https://gitlab.com/gitlab-org/gitlab/blob/394d44a22c96f4443d1c8bd33255ba97d4d7e897/app/services/import/github_service.rb#L117

  3. https://gitlab.com/gitlab-org/gitlab/blob/c52747208039dddafadb361a0625c590a58b5ae2/app/models/project_import_state.rb#L89

  4. https://gitlab.com/gitlab-org/gitlab/blob/ba771af3dd89f683743d45d3cdb66f20c7905904/app/models/u2f_registration.rb#L17

  5. https://gitlab.com/gitlab-org/gitlab/blob/c5b9c6b5c600827f24b0d97bf30c97644abada19/app/services/projects/overwrite_project_service.rb#L46

  6. https://gitlab.com/gitlab-org/gitlab/blob/626518f5dca114360be0b7fc2f91a4a0ac314620/ee/app/services/elastic/cluster_reindexing_service.rb#L254

  7. https://gitlab.com/gitlab-org/gitlab/blob/e1acca6ead3c7a1f5ea2b5aff37e2aa552b438fd/ee/app/services/geo/move_repository_service.rb#L55

  8. https://gitlab.com/gitlab-org/gitlab/blob/bae9a502c2eb314200a3c0e14d94b96a927f917e/ee/app/services/security/token_revocation_service.rb#L51

  9. https://gitlab.com/gitlab-org/gitlab/blob/e1acca6ead3c7a1f5ea2b5aff37e2aa552b438fd/ee/lib/api/scim.rb#L113-135

  10. https://gitlab.com/gitlab-org/gitlab/blob/e1acca6ead3c7a1f5ea2b5aff37e2aa552b438fd/ee/lib/ee/gitlab/background_migration/update_vulnerabilities_from_dismissal_feedback.rb#L49

  11. https://gitlab.com/gitlab-org/gitlab/blob/e1acca6ead3c7a1f5ea2b5aff37e2aa552b438fd/ee/lib/ee/gitlab/background_migration/update_vulnerabilities_to_dismissed.rb#L56

  12. https://gitlab.com/gitlab-org/gitlab/blob/9f596c784c7b2a4664c38cf3425e5e8b2deaa4f9/ee/lib/ee/gitlab/scim/provisioning_service.rb#L28

  13. https://gitlab.com/gitlab-org/gitlab/blob/9f596c784c7b2a4664c38cf3425e5e8b2deaa4f9/ee/lib/ee/gitlab/scim/provisioning_service.rb#L94

  14. https://gitlab.com/gitlab-org/gitlab/blob/1ef6e93da1166de2bde8ee181ffdca4d320abd59/ee/lib/gitlab/auth/smartcard/base.rb#L18

And many more.. Not sure how many of these could end up in the Sidekiq index though.

Do we need to fix all of these? Or we'll just handle them as we see conflicts?

Edited by 🤖 GitLab Bot 🤖