mperham / rack-fiber_pool

Rack middleware to execute each request in a Fiber
MIT License
244 stars 24 forks source link

It doesn't log access when use Rack::FiberPool #21

Open kidlab opened 11 years ago

kidlab commented 11 years ago

I'm using Rack FiberPool with Rails. When I run in development mode there is no log show on the console (neither static assets nor active record log).

The log contains useful information for debugging, how can I get it back to the console?

Thanks.

skaes commented 11 years ago

Could be caused by thread locals being actually fiber local. Rails uses thread locals for some things related to logging.

See https://github.com/skaes/thread_variables