diff options
author | Stan Hu <stanhu@gmail.com> | 2017-09-07 07:48:13 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-09-07 07:48:13 -0700 |
commit | 35dec2c3e87f2f44c3ab0269e7f737afdc28801a (patch) | |
tree | 0c4b18a8f9c1c544aa7d01b866ee824108e11035 /lib/api/api.rb | |
parent | c304dfd4d6ca0f52537044742bb6dd6c219bdbbf (diff) | |
download | gitlab-ce-35dec2c3e87f2f44c3ab0269e7f737afdc28801a.tar.gz |
Use a custom GrapeLogging formatter to get the timestampsh-add-grape-logging
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r-- | lib/api/api.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index 0ab0c8c490a..af0b38963f5 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -5,8 +5,8 @@ module API LOG_FILENAME = Rails.root.join("log", "api_json.log") use GrapeLogging::Middleware::RequestLogger, - logger: ::Gitlab::ApiLogger.new(LOG_FILENAME), - formatter: GrapeLogging::Formatters::Json.new, + logger: Logger.new(LOG_FILENAME), + formatter: Gitlab::GrapeLogging::Formatters::LogrageWithTimestamp.new, include: [ GrapeLogging::Loggers::Response.new, GrapeLogging::Loggers::FilterParameters.new, |