You can use RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah" outside a controller for logging.
The last Passenger update brought some good explanation off the problems regarding Passenger and memcache-client (see here). Smart spawning of Passenger processes creates shared file descriptors. As the connections to memcached are sockets they are shared as well so data on them gets corrupted which is explained very nicely in the Passenger documentation: Example 1: […]
I recently switch from a mod_proxy / thin setup to Phusion Passenger and my application started to do the funniest things and the production.log was full with errors related to memcached. It seems, that passengers spawn method “smart” isn’t compatible with memcached. Within seconds on a lightly loaded server the cache gets corrupted big time. […]
What can cause this snippet to fail: <% if !@day.user.is_rateable? # Workaround für Darstellungsfehler mit Tabellen ohne Bodies im Safari %> <!– blah –> <% end %> This little snippet fell apart today. I don’t know if it is passenger, a newer ruby version, RubyInline. All i know is that i am so totally pissed […]
Ruby on Rails I18n infrastructure did a great job to internationalization in Rails applications. Most things work right out of the box. Daily Fratze is fully internationalized and i wanted to use ordinal day numbers in the English version. Pity, there is no template for strftime that works that way. As i already hat monkey […]