Merge branch 'sh-lograge-iso6801-time' into 'master'

Standardize on ISO8601 UTC time for lograge

See merge request !12995
This commit is contained in:
Stan Hu 2017-07-20 21:58:29 +00:00
commit bbf5723774

View file

@ -13,7 +13,7 @@ unless Sidekiq.server?
# Add request parameters to log output # Add request parameters to log output
config.lograge.custom_options = lambda do |event| 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)) params: event.payload[:params].except(%w(controller action format))
} }
end end