Please log into your user account or create a new one

Solution for: #45: why is Rails logging to ".log"?!

Watch how you log...

1
After trying to blame Workling for a while, I realized it was my problem. In my environment.rb, I had

   1  config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 20, 1048576)


I don't explicitly set RAILS_ENV in my env, so I should have had

   1  config.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log", 20, 1048576)


The Lesson: always use RAILS_ENV, never ENV['RAILS_ENV'].