1 ArvadosWorkbench::Application.configure do
2 config.lograge.enabled = true
3 config.lograge.formatter = Lograge::Formatters::Logstash.new
4 config.lograge.custom_options = lambda do |event|
5 exceptions = %w(controller action format id)
6 params = event.payload[:params].except(*exceptions)
7 params_s = Oj.dump(params)
8 if params_s.length > 1000
9 { params_truncated: params_s[0..1000] + "[...]" }