Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails stop logging when allow_concurrency = true

I'm using Rails 4.0 with Puma multi-thread server.

I had to enable "allow_concurrency = true" even in development environment because I used ActionController::Live implementing some long-pulling EventSource.

But once multi-thread enabled, Rails stop logging.. so Log file only have first page request, and have nothing after that. (STDOUT is the same)

I think either Rails.logger lost it's reference in different thread, or log file is locked by one thread and others just don't have access.

I googled it for few hours but could find any answer or similar question yet.

like image 596
guest Avatar asked Jul 26 '13 03:07

guest


1 Answers

Just figured out the problem. It was because of 'quiet_assets' gem.

like image 173
guest Avatar answered Oct 20 '22 13:10

guest