diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-24 15:08:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-24 15:08:20 +0300 |
commit | 735e7717e7656cd449affd989fc16f2228f7dd00 (patch) | |
tree | 0094d2a975c3dad0209d3419510dadd3a050c354 /app | |
parent | 55be83f73cc3df921d89dc8dffc97edd1efdc102 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 2 | ||||
-rw-r--r-- | app/models/repository.rb | 6 | ||||
-rw-r--r-- | app/models/ssh_host_key.rb | 2 | ||||
-rw-r--r-- | app/services/projects/hashed_storage/base_attachment_service.rb | 2 |
4 files changed, 5 insertions, 7 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index d6f6515ed23..2b67bc543b5 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -352,7 +352,7 @@ module Ci begin Ci::Build.retry(build, build.user) rescue Gitlab::Access::AccessDeniedError => ex - Rails.logger.error "Unable to auto-retry job #{build.id}: #{ex}" # rubocop:disable Gitlab/RailsLogger + Gitlab::AppLogger.error "Unable to auto-retry job #{build.id}: #{ex}" end end end diff --git a/app/models/repository.rb b/app/models/repository.rb index 16b4fdabf48..911cfc7db38 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -950,7 +950,6 @@ class Repository async_remove_remote(remote_name) if tmp_remote_name end - # rubocop:disable Gitlab/RailsLogger def async_remove_remote(remote_name) return unless remote_name return unless project @@ -958,14 +957,13 @@ class Repository job_id = RepositoryRemoveRemoteWorker.perform_async(project.id, remote_name) if job_id - Rails.logger.info("Remove remote job scheduled for #{project.id} with remote name: #{remote_name} job ID #{job_id}.") + Gitlab::AppLogger.info("Remove remote job scheduled for #{project.id} with remote name: #{remote_name} job ID #{job_id}.") else - Rails.logger.info("Remove remote job failed to create for #{project.id} with remote name #{remote_name}.") + Gitlab::AppLogger.info("Remove remote job failed to create for #{project.id} with remote name #{remote_name}.") end job_id end - # rubocop:enable Gitlab/RailsLogger def fetch_source_branch!(source_repository, source_branch, local_ref) raw_repository.fetch_source_branch!(source_repository.raw_repository, source_branch, local_ref) diff --git a/app/models/ssh_host_key.rb b/app/models/ssh_host_key.rb index 72690ad7d04..7e34988c7a0 100644 --- a/app/models/ssh_host_key.rb +++ b/app/models/ssh_host_key.rb @@ -107,7 +107,7 @@ class SshHostKey if status.success? && !errors.present? { known_hosts: known_hosts } else - Rails.logger.debug("Failed to detect SSH host keys for #{id}: #{errors}") # rubocop:disable Gitlab/RailsLogger + Gitlab::AppLogger.debug("Failed to detect SSH host keys for #{id}: #{errors}") { error: 'Failed to detect SSH host keys' } end diff --git a/app/services/projects/hashed_storage/base_attachment_service.rb b/app/services/projects/hashed_storage/base_attachment_service.rb index a2a7895ba17..d61a2af6c1c 100644 --- a/app/services/projects/hashed_storage/base_attachment_service.rb +++ b/app/services/projects/hashed_storage/base_attachment_service.rb @@ -19,7 +19,7 @@ module Projects def initialize(project:, old_disk_path:, logger: nil) @project = project @old_disk_path = old_disk_path - @logger = logger || Rails.logger # rubocop:disable Gitlab/RailsLogger + @logger = logger || Gitlab::AppLogger end # Return whether this operation was skipped or not |