Merge branch '10117-fuse-refcount' refs #10117
[arvados.git] / apps / workbench / config / initializers / lograge.rb
index 6d3d246d8f9f11baf02127e010eb18f42e100098..fa19667e3693848415f257223e13262fd99175c7 100644 (file)
@@ -3,9 +3,10 @@ ArvadosWorkbench::Application.configure do
   config.lograge.formatter = Lograge::Formatters::Logstash.new
   config.lograge.custom_options = lambda do |event|
     exceptions = %w(controller action format id)
-    params = {client_session_id: Thread.current[:client_session_id]}.
+    params = {current_request_id: Thread.current[:current_request_id]}.
              merge(event.payload[:params].except(*exceptions))
     params_s = Oj.dump(params)
+    Thread.current[:current_request_id] = nil # Clear for next request
     if params_s.length > 1000
       { params_truncated: params_s[0..1000] + "[...]" }
     else