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
8651023b
Commit
8651023b
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 usage_ping and webhook service
parent
11271ac4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/services/submit_usage_ping_service.rb
app/services/submit_usage_ping_service.rb
+1
-1
app/services/web_hook_service.rb
app/services/web_hook_service.rb
+1
-1
changelogs/unreleased/rails-logger-cop-9.yml
changelogs/unreleased/rails-logger-cop-9.yml
+5
-0
No files found.
app/services/submit_usage_ping_service.rb
View file @
8651023b
...
...
@@ -28,7 +28,7 @@ class SubmitUsagePingService
true
rescue
Gitlab
::
HTTP
::
Error
=>
e
Rails
.
logger
.
info
"Unable to contact GitLab, Inc.:
#{
e
}
"
# rubocop:disable Gitlab/RailsLogger
Gitlab
::
AppLogger
.
info
(
"Unable to contact GitLab, Inc.:
#{
e
}
"
)
false
end
...
...
app/services/web_hook_service.rb
View file @
8651023b
...
...
@@ -63,7 +63,7 @@ class WebHookService
error_message:
e
.
to_s
)
Rails
.
logger
.
error
(
"WebHook Error =>
#{
e
}
"
)
# rubocop:disable Gitlab/RailsLogger
Gitlab
::
AppLogger
.
error
(
"WebHook Error =>
#{
e
}
"
)
{
status: :error
,
...
...
changelogs/unreleased/rails-logger-cop-9.yml
0 → 100644
View file @
8651023b
---
title
:
Use applogger in usage ping and webhook service
merge_request
:
32192
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