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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
c304dfd4
Commit
c304dfd4
authored
Sep 07, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop failures in API logger
parent
f7c8032e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
lib/api/api.rb
lib/api/api.rb
+5
-3
lib/gitlab/api_logger.rb
lib/gitlab/api_logger.rb
+0
-1
No files found.
lib/api/api.rb
View file @
c304dfd4
...
@@ -7,9 +7,11 @@ module API
...
@@ -7,9 +7,11 @@ module API
use
GrapeLogging
::
Middleware
::
RequestLogger
,
use
GrapeLogging
::
Middleware
::
RequestLogger
,
logger:
::
Gitlab
::
ApiLogger
.
new
(
LOG_FILENAME
),
logger:
::
Gitlab
::
ApiLogger
.
new
(
LOG_FILENAME
),
formatter:
GrapeLogging
::
Formatters
::
Json
.
new
,
formatter:
GrapeLogging
::
Formatters
::
Json
.
new
,
include:
[
GrapeLogging
::
Loggers
::
Response
.
new
,
include:
[
GrapeLogging
::
Loggers
::
FilterParameters
.
new
,
GrapeLogging
::
Loggers
::
Response
.
new
,
GrapeLogging
::
Loggers
::
ClientEnv
.
new
]
GrapeLogging
::
Loggers
::
FilterParameters
.
new
,
GrapeLogging
::
Loggers
::
ClientEnv
.
new
]
allow_access_with_scope
:api
allow_access_with_scope
:api
prefix
:api
prefix
:api
...
...
lib/gitlab/api_logger.rb
View file @
c304dfd4
module
Gitlab
module
Gitlab
class
ApiLogger
<
::
Logger
class
ApiLogger
<
::
Logger
def
format_message
(
severity
,
timestamp
,
progname
,
message
)
def
format_message
(
severity
,
timestamp
,
progname
,
message
)
super
+
"
\n
"
super
+
"
\n
"
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