Commit 71be5dc3 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'rails-logger-cop-22' into 'master'

Use applogger in artifact worker

See merge request gitlab-org/gitlab!32212
parents 5c9561e7 71579a29
......@@ -14,7 +14,7 @@ class ExpireBuildInstanceArtifactsWorker # rubocop:disable Scalability/Idempoten
return unless build&.project && !build.project.pending_delete
Rails.logger.info "Removing artifacts for build #{build.id}..." # rubocop:disable Gitlab/RailsLogger
Gitlab::AppLogger.info("Removing artifacts for build #{build.id}...")
build.erase_erasable_artifacts!
end
# rubocop: enable CodeReuse/ActiveRecord
......
---
title: Use applogger in artifact worker
merge_request: 32212
author: Rajendra Kadam
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment