Merge branch '13146-shared-rails' refs #13146
[arvados.git] / services / api / app / controllers / application_controller.rb
index 81e4b961e441ab3a7b032ef217c8c65b32eb725e..1cb49f46749054859980471772aa8f4b3f7f51e1 100644 (file)
@@ -383,7 +383,9 @@ class ApplicationController < ActionController::Base
       req_id = "req-" + Random::DEFAULT.rand(2**128).to_s(36)[0..19]
     end
     response.headers['X-Request-Id'] = Thread.current[:request_id] = req_id
-    yield
+    Rails.logger.tagged(req_id) do
+      yield
+    end
     Thread.current[:request_id] = nil
   end