Commit c304dfd4 authored by Stan Hu's avatar Stan Hu

Fix Rubocop failures in API logger

parent f7c8032e
...@@ -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::Response.new,
GrapeLogging::Loggers::FilterParameters.new, GrapeLogging::Loggers::FilterParameters.new,
GrapeLogging::Loggers::ClientEnv.new ] GrapeLogging::Loggers::ClientEnv.new
]
allow_access_with_scope :api allow_access_with_scope :api
prefix :api prefix :api
......
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment