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
810d5e8d
Commit
810d5e8d
authored
Jan 16, 2018
by
Gabriel Mazetto
Committed by
Nick Thomas
Jan 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo Logger should use the same log level defined in Rails
parent
4e6a9f1d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
changelogs/unreleased-ee/4497-geo-reuse-log-level.yml
changelogs/unreleased-ee/4497-geo-reuse-log-level.yml
+5
-0
ee/lib/gitlab/geo/logger.rb
ee/lib/gitlab/geo/logger.rb
+4
-0
spec/ee/spec/lib/gitlab/geo/logger_spec.rb
spec/ee/spec/lib/gitlab/geo/logger_spec.rb
+10
-0
No files found.
changelogs/unreleased-ee/4497-geo-reuse-log-level.yml
0 → 100644
View file @
810d5e8d
---
title
:
Geo Logger will use the same log level defined in Rails
merge_request
:
4066
author
:
type
:
changed
ee/lib/gitlab/geo/logger.rb
View file @
810d5e8d
...
@@ -4,6 +4,10 @@ module Gitlab
...
@@ -4,6 +4,10 @@ module Gitlab
def
self
.
file_name_noext
def
self
.
file_name_noext
'geo'
'geo'
end
end
def
self
.
build
super
.
tap
{
|
logger
|
logger
.
level
=
Rails
.
logger
.
level
}
end
end
end
end
end
end
end
spec/ee/spec/lib/gitlab/geo/logger_spec.rb
0 → 100644
View file @
810d5e8d
require
'spec_helper'
describe
Gitlab
::
Geo
::
Logger
do
it
'uses the same log_level defined in Rails'
do
allow
(
Rails
.
logger
).
to
receive
(
:level
)
{
99
}
expect_any_instance_of
(
::
Gitlab
::
Geo
::
Logger
).
to
receive
(
:level
=
).
with
(
99
)
described_class
.
build
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