Commit 9c72a117 authored by Peter Leitzen's avatar Peter Leitzen

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

Use applogger in delete user worker

See merge request gitlab-org/gitlab!32209
parents 8659cd81 ef596918
......@@ -11,6 +11,6 @@ class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker
Users::DestroyService.new(current_user).execute(delete_user, options.symbolize_keys)
rescue Gitlab::Access::AccessDeniedError => e
Rails.logger.warn("User could not be destroyed: #{e}") # rubocop:disable Gitlab/RailsLogger
Gitlab::AppLogger.warn("User could not be destroyed: #{e}")
end
end
---
title: Use applogger in delete user worker
merge_request: 32209
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