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
88b597f6
Commit
88b597f6
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 groups destroy service and label create service
parent
11271ac4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/services/groups/destroy_service.rb
app/services/groups/destroy_service.rb
+1
-1
app/services/labels/create_service.rb
app/services/labels/create_service.rb
+1
-1
changelogs/unreleased/rails-logger-cop-11.yml
changelogs/unreleased/rails-logger-cop-11.yml
+5
-0
No files found.
app/services/groups/destroy_service.rb
View file @
88b597f6
...
...
@@ -6,7 +6,7 @@ module Groups
def
async_execute
job_id
=
GroupDestroyWorker
.
perform_async
(
group
.
id
,
current_user
.
id
)
Rails
.
logger
.
info
(
"User
#{
current_user
.
id
}
scheduled a deletion of group ID
#{
group
.
id
}
with job ID
#{
job_id
}
"
)
# rubocop:disable Gitlab/RailsLogger
Gitlab
::
AppLogger
.
info
(
"User
#{
current_user
.
id
}
scheduled a deletion of group ID
#{
group
.
id
}
with job ID
#{
job_id
}
"
)
end
# rubocop: disable CodeReuse/ActiveRecord
...
...
app/services/labels/create_service.rb
View file @
88b597f6
...
...
@@ -20,7 +20,7 @@ module Labels
label
.
save
label
else
Rails
.
logger
.
warn
(
"target_params should contain :project or :group or :template, actual value:
#{
target_params
}
"
)
# rubocop:disable Gitlab/RailsLogger
Gitlab
::
AppLogger
.
warn
(
"target_params should contain :project or :group or :template, actual value:
#{
target_params
}
"
)
end
end
end
...
...
changelogs/unreleased/rails-logger-cop-11.yml
0 → 100644
View file @
88b597f6
---
title
:
Use applogger in groups destroy service and label create service
merge_request
:
32195
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