Skip to content
Snippets Groups Projects
Commit c304dfd4 authored by Stan Hu's avatar Stan Hu
Browse files

Fix Rubocop failures in API logger

parent f7c8032e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,9 +7,11 @@ module API
use GrapeLogging::Middleware::RequestLogger,
logger: ::Gitlab::ApiLogger.new(LOG_FILENAME),
formatter: GrapeLogging::Formatters::Json.new,
include: [ GrapeLogging::Loggers::Response.new,
GrapeLogging::Loggers::FilterParameters.new,
GrapeLogging::Loggers::ClientEnv.new ]
include: [
GrapeLogging::Loggers::Response.new,
GrapeLogging::Loggers::FilterParameters.new,
GrapeLogging::Loggers::ClientEnv.new
]
 
allow_access_with_scope :api
prefix :api
Loading
Loading
module Gitlab
class ApiLogger < ::Logger
def format_message(severity, timestamp, progname, message)
super + "\n"
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment