diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2018-02-28 12:14:57 +0000 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2018-02-28 12:14:57 +0000 |
commit | d921addde71f6c7e163d8eadd1f30f111e83229f (patch) | |
tree | 72f1c861f137c5bc986374d4cf3651a74c8d6424 | |
parent | c869aa917c20b8289b3074431ec986c30b0b3834 (diff) | |
download | gitlab-ce-an/lograge-fix.tar.gz |
Improved formatting, excluding the `format` parameter once againan/lograge-fix
-rw-r--r-- | config/initializers/lograge.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index f78f530e9a8..114c1cb512f 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -13,8 +13,10 @@ unless Sidekiq.server? # Add request parameters to log output config.lograge.custom_options = lambda do |event| params = event.payload[:params] - .except(*%w(controller action)) - .each_pair.map { |k, v| { key: k, value: v } } + .except(*%w(controller action format)) + .each_pair + .map { |k, v| { key: k, value: v } } + payload = { time: event.time.utc.iso8601(3), params: params, |