diff options
author | Stan Hu <stanhu@gmail.com> | 2017-07-20 07:58:01 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-07-20 07:58:01 -0700 |
commit | 68529f4f80ea462c0f387112da76a95e02e13d96 (patch) | |
tree | 20ea0f9232dbb20297289d75d043a5c67481d24a /config/initializers/lograge.rb | |
parent | 9d03637307212856e9f52a0c097aa8a6bff35ea1 (diff) | |
download | gitlab-ce-68529f4f80ea462c0f387112da76a95e02e13d96.tar.gz |
Standardize on ISO8601 UTC time for logragesh-lograge-iso6801-time
Diffstat (limited to 'config/initializers/lograge.rb')
-rw-r--r-- | config/initializers/lograge.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 14902316240..c9a515dfcd5 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -13,7 +13,7 @@ unless Sidekiq.server? # Add request parameters to log output config.lograge.custom_options = lambda do |event| { - time: event.time, + time: event.time.utc.iso8601(3), params: event.payload[:params].except(%w(controller action format)) } end |