diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /app/workers/object_storage | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'app/workers/object_storage')
-rw-r--r-- | app/workers/object_storage/migrate_uploads_worker.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/workers/object_storage/migrate_uploads_worker.rb b/app/workers/object_storage/migrate_uploads_worker.rb index 33a0e0f5f88..f489e428e8d 100644 --- a/app/workers/object_storage/migrate_uploads_worker.rb +++ b/app/workers/object_storage/migrate_uploads_worker.rb @@ -41,16 +41,14 @@ module ObjectStorage end end - # rubocop:disable Gitlab/RailsLogger def report!(results) success, failures = results.partition(&:success?) - Rails.logger.info header(success, failures) - Rails.logger.warn failures(failures) + Gitlab::AppLogger.info header(success, failures) + Gitlab::AppLogger.warn failures(failures) raise MigrationFailures.new(failures.map(&:error)) if failures.any? end - # rubocop:enable Gitlab/RailsLogger def header(success, failures) _("Migrated %{success_count}/%{total_count} files.") % { success_count: success.count, total_count: success.count + failures.count } @@ -104,7 +102,7 @@ module ObjectStorage report!(results) rescue SanityCheckError => e # do not retry: the job is insane - Rails.logger.warn "#{self.class}: Sanity check error (#{e.message})" # rubocop:disable Gitlab/RailsLogger + Gitlab::AppLogger.warn "#{self.class}: Sanity check error (#{e.message})" end # rubocop: enable CodeReuse/ActiveRecord |