Commit bbf57237 authored by Stan Hu's avatar Stan Hu

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

Standardize on ISO8601 UTC time for lograge

See merge request !12995
parents a1cf5f0f 68529f4f
...@@ -13,7 +13,7 @@ unless Sidekiq.server? ...@@ -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
......
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