How do you enable database logging in production mode? (Rails v2.3.8)
I have some oddities on my production server only and I need to be able to see all the database queries as in development m开发者_如何学JAVAode.
I am sure it is a small config tweak, but I can't find any solutions.
In Rails 2.x, in the environment.rb file you have:
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
# config.log_level = :debug
In Rails 3.x should be something similar.
精彩评论