Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ef596918
Commit
ef596918
authored
May 21, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use applogger in delete user worker
parent
11271ac4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/workers/delete_user_worker.rb
app/workers/delete_user_worker.rb
+1
-1
changelogs/unreleased/rails-logger-cop-20.yml
changelogs/unreleased/rails-logger-cop-20.yml
+5
-0
No files found.
app/workers/delete_user_worker.rb
View file @
ef596918
...
@@ -11,6 +11,6 @@ class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker
...
@@ -11,6 +11,6 @@ class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker
Users
::
DestroyService
.
new
(
current_user
).
execute
(
delete_user
,
options
.
symbolize_keys
)
Users
::
DestroyService
.
new
(
current_user
).
execute
(
delete_user
,
options
.
symbolize_keys
)
rescue
Gitlab
::
Access
::
AccessDeniedError
=>
e
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
end
end
changelogs/unreleased/rails-logger-cop-20.yml
0 → 100644
View file @
ef596918
---
title
:
Use applogger in delete user worker
merge_request
:
32209
author
:
Rajendra Kadam
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment