On Friday, October 5, 2012 4:51:26 PM UTC+1, Brandon Mathis
wrote:>
> Is Rails Logger truly not Thread Safe?
> http://log.kares.org/2011/04/railslogger-is-not-threadsafe.html
>
> This seems like an issue that should have been picked up quite a long time
> ago. I just set config.threadsafe! in my config/application.rb and my log
> output from rails server has completely disappeared.
>
> It looks like someone tried to fix that around a year ago
-
https://github.com/rails/rails/commit/d565fda5f27abf0097adf7b3e232a52f7ae5c1e9#activesupport/lib/active_support/buffered_logger.rb
What version of rails are you using ?
Fred
> If the logger is not thread-safe, I cannot help but wonder how much of the
> Rails core is not thread safe. Is config.threadsafe! even a viable thing to
> use in Rails?
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/SnHbPchAl8YJ.
For more options, visit https://groups.google.com/groups/opt_out.