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
72b6bc82
Commit
72b6bc82
authored
Sep 10, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Gitlab/RailsLogger rules for two code locations
parent
57e19bd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/lib/gitlab/geo/log_cursor/daemon.rb
ee/lib/gitlab/geo/log_cursor/daemon.rb
+1
-1
ee/lib/gitlab/geo/logger.rb
ee/lib/gitlab/geo/logger.rb
+1
-1
No files found.
ee/lib/gitlab/geo/log_cursor/daemon.rb
View file @
72b6bc82
...
@@ -186,7 +186,7 @@ module Gitlab
...
@@ -186,7 +186,7 @@ module Gitlab
end
end
def
log_level
def
log_level
debug_logging?
?
:debug
:
Rails
.
logger
.
level
# rubocop:disable Gitlab/RailsLogger
debug_logging?
?
:debug
:
Rails
.
logger
.
level
end
end
def
debug_logging?
def
debug_logging?
...
...
ee/lib/gitlab/geo/logger.rb
View file @
72b6bc82
...
@@ -14,7 +14,7 @@ module Gitlab
...
@@ -14,7 +14,7 @@ module Gitlab
end
end
def
self
.
build
def
self
.
build
super
.
tap
{
|
logger
|
logger
.
level
=
Rails
.
logger
.
level
}
# rubocop:disable Gitlab/RailsLogger
super
.
tap
{
|
logger
|
logger
.
level
=
Rails
.
logger
.
level
}
end
end
end
end
end
end
...
...
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